Page 1 of 1

answer all these question : 1. The purpose of ViewModel is to store and manage UI-related data in a lifecycle conscious

Posted: Fri Jul 01, 2022 5:53 am
by answerhappygod
answer all these question : 1. The purpose of ViewModel is to store and manage UI-related data in a lifecycle conscious way. Compare the difference between regular ViewModel and AndroidViewModel (2 marks) and provide an example of when is the suitable scenario to use the ViewModel and AndroidViewModel (4 marks).2. List necessary steps to enable your mobile application utilizes the location service to obtain the user's current location (5 marks) with the correct sequence (2 marks).3. Your mobile application must execute a task in the future. Choose the suitable scheduler mechanism if the task is executed when the application is currently running (3 marks), the task can be executed after the application is terminated but the mobile device is not rebooted (3 marks), or the task is reliably executed even after the mobile device is rebooted (3 marks).