Issue
I want to know Application class behvaiour, how it work in following cases, any one have idea about it:
- How
android.app.Application
work, - when it execute in lifecycle of application,
- how it interact with other app component like Activity/Service/Receiver.
- How it is usable to improve app performance/architectre?
Solution
- It starts when your application's process starts and ends when the system kills the process
- It cannot interact with them directly, your may use Broadcasts, or you can get the current Application instance with getApplicationContext()
- It is a singleton class which is available from every Activity, Service, etc. It's up to you how you use it
Answered By - pshegger
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.