15/06/2021 Week 2: Workshop Quiz: Attempt review
FIT2081 Mobile application development – S1 2021
Dashboard / My units / FIT2081_S1_2021 / Assessments / Week 2: Workshop Quiz
Started on Monday, 8 March 2021, 9:50 PM
State Finished
Completed on Monday, 8 March 2021, 11:32 PM
Time taken 1 hour 42 mins
Grade 9.33 out of 10.00 (93%) Print friendly format
Question 1
Complete
Mark 9.33 out of 10.00
Question 1
Assume you are developing an application that should be available in two different languages (English and French).
a) Develop an application for each language separately is the best solution. Do you agree?? Justify your answer.
No. I don’t think developing an application for each language is the best solution. First of all, it is a waste of development cost and time. Then, some of the resources can be specific to a language but not all. The solution needs to change to a different approach to solve.
b) If not, what alternative approach would you recommend and why?
According to these two different languages, I suggest using a separate resource in this application root folder for each language. These resources can be mapped in the application’s logic by the user’s input. All the resource files in this app will contain a resource ID or name.
Under the resources for this application, specify certain strings in some XML folders and reference the resources using the resource’s name attribute. Using app resources makes it easy to update the characteristics of our app without modifying code and – by providing sets of alternative resources, enables us to optimize our app for a variety of device configurations like dealing with different kinds of language.
Comment:
Q1=100% Q2=100% Q3=67%
Question 2
Complete
https://lms.monash.edu/mod/quiz/review.php?attempt=18538129&cmid=8331148 1/3
15/06/2021 Week 2: Workshop Quiz: Attempt review
Complete Not graded
Question 2
a) Suppose you are developing an Android app that needs to keep a method (function) running in the background. Briefly explain how would you implement this function?
Services can be running in the background, so I should create a service in an Android application class to run and start the above Service. Hence I need to keep a method (function) running in the background. If an Andriod app is terminated, Service will start running in the background again.
Question 3 Complete Not graded
Question 3
b) List two similarities between Activities and Services.
1. Both Activities and Services are basic building blocks of an Andriod app. Activity is to handle the tasks and interactions for the user but Services deal with some tasks about user input and running in the background.
2. Both Activities and Services are activated by intents. In addition, they can be a foreground. However, Services can also as background and bound types.
c) What is common between Activity, Service, and Broadcast Receiver?
Activity, Service and Broadcast Receiver are three components, which can be activated by Intents. They are blinded with the intent at runtime. In other words, the intent is just a message and it activates a specific component.
Question 4 Complete Not graded
Question 4
Consider an app compiled against API level 29 on a device running Android 11 (API Level 30).
https://lms.monash.edu/mod/quiz/review.php?attempt=18538129&cmid=8331148 2/3
15/06/2021 Week 2: Workshop Quiz: Attempt review
a) This usually works. Why?
Due to Forward Compatibility, the old application can usually run on new platform versions. In this case, API level 29 on a device is running Android 11(API level 30).
b) How could this go wrong?
Because this application has not been updated and compatible with the API level 30. It may not be run and go wrong. If a part of API level 29 is removed in API level 30 for some reason, it will not be able to use. When this does not support the software and hardware requirements, this is also unusable.
Question 5 Complete Not graded
Question 5
c) Can it be fixed without changing the API level of the app and the device? Explain.
Yes, it can. It can be fixed by adding these removed parts of API level 29 that is required for the app to run into the newer platform version (API level 30). When using some support libraries to backward the compatibility for API level 30.
◄ Ed Discussion
Jump to…
Week 3: Workshop Quiz ►
https://lms.monash.edu/mod/quiz/review.php?attempt=18538129&cmid=8331148 3/3