Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

please answer this question in a short form so that i can memorize them quickly.Thank you so much. (a) A new developer has joined your

please answer this question in a short form so that i can memorize them quickly.Thank you so much.
image text in transcribed
image text in transcribed
image text in transcribed
(a) A new developer has joined your team. You would like them to add some functionality which requires a background thread to update the UI. When you inform your new developer "A background thread cannot update the UI directly" they are confused. Defend this statement to help them understand. (10 marks) (b) Explain with the aid of a diagram how the law of diminishing returns affects the ability for a development team to optimise an application. How would you advise such development teams to determine when to stop optimising an application? (10 marks) (c) One of the things to improve the performance of an application is the use of integer number instead of float number. Do you agree? Discuss. (5marks)Total(25marks) QUESTION 2 (a) Most android applications contain two mechanisms to return from an activity. Identify both of these mechanisms and compare their behaviour. (10 marks) (b) Explain how implicit intents can lead to more efficient use of the mobile device and a better user experience. (c) Android application's structure has two parts: code and none-code resources. Discuss the rational behind this structure. Do Dalvik and ART treat the non-code resources the same way? (5marks)Total(25marks) QUESTION 3 (a) Android has two handlers that are called immediately after each another: onCreate() and onStart0. Discuss the purposes of these handlers, and comment if these handers should have been implemented in one handler instead. (6 marks) (b) The use of handlers is very important when your application uses sensors. Discuss this statement. (5 marks) (c) Explain, with the help of two examples, why readings from more than one sensor of the same type might be combined. Should this always be done? List and discuss two things to consider if you decide to implement this technique in your application? (14 marks) (a) Contrast Dex file to Jar file. (10 marks) (b) Android is a run time based on Linux kernel. Discuss the advantages of this approach compared to building a new native OS. (10 marks) (c) Contrast ART to JIT in terms of Storage and Battery Life. (5marks)Total(25marks) QUESTION 5 (a) Three methods to implement custom views. List them and give example for their use. (6 marks) (b) One standard piece of advice when developing custom views is to use a shared initialisation method. Justify why this is the case. (4 marks) (c) Two methods provided by the canvas are save 0 and restore) to manipulate the Matrix Stack. What is the matrix stack and what it is used for? Why the use of these two methods is important? Give three examples with brief description for manipulations you can do for the matrix stack

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Oracle Database 11g SQL

Authors: Jason Price

1st Edition

0071498508, 978-0071498500

More Books

Students also viewed these Databases questions

Question

1. Who should participate and how will participants be recruited?

Answered: 1 week ago