Using MVVM architecture in android, what is the best way to address cross cutting concerns.
E.g.
- Showing a login screen if required even when screen wake up, having been in background for a long time.
- Handling error from server.
- Check if authenticated before creating an activity.
Well for the first one peobably use service and broadcast recievers. For handling error my advice is use rxjava .
For the third one simple use a global eventbus that way you can implement different approaches.