InterviewSolution
| 1. |
Can you tell me how exactly Fused Location API works? How can I get location updates while GPS is off but the network connection is on? |
|
Answer» I would advise MVVM, it is the pattern of the future. And it is the only architecture that can give you full testing without dependencies. Once you get your head around the DATA-binding concept, it is super easy. In MVVM we are using Android Architecture Components. There LiveData and ViewModel are the main components which will help in resolving the view dependency. LiveData is an observable data holder class which is Lifecycle state of the ACTIVITY or Fragment. And ViewModel is LIKE the state representation of UI which stores and manages UI-related data in a lifecycle conscious way. It will ALSO save data when screen orientation changed. MVP is tight coupling, so there are many things that are difficult to test. |
|