1) Activity - Whenever we start any application in android, first call will be to activity.
For example, we have started facebook application. Login page will get open first that is the Login activity which will get called first. Once logged in News Feed activity will get called.
Wall, login screen, etc.
2) Intents - Whenever we want to access some data/activity within the activity then intent comes into picture. To call other activity from the existing one intents are used. Those are acts as mediator.
3) Services - Services are nothing but background jobs which are running in background.
Ex. Music, Network download, etc.
4) Broad Cast receiver - These are silent observers. Whenever app asks them to provide some info after the event occurs they will carried out the same. Ex. battery low indicator
5) Content Providers : Address sharing, Photo Gallery etc.
Lifecycle of android apps :
1) Starting state : before apps get running it will be in Starting state
2) Running state : once apps come in foreground it will be in running state and user is interacting with it.
3) Paused state : when apps is in foreground state but user is not interacting with it then it is in paused state.
4) Stopped State : when user is not interacting with it and it is in background then it is in stopped state.
5)Destroyed state : when application is no more available for use i.e. it is not in stopped state.
For example, we have started facebook application. Login page will get open first that is the Login activity which will get called first. Once logged in News Feed activity will get called.
Wall, login screen, etc.
2) Intents - Whenever we want to access some data/activity within the activity then intent comes into picture. To call other activity from the existing one intents are used. Those are acts as mediator.
3) Services - Services are nothing but background jobs which are running in background.
Ex. Music, Network download, etc.
4) Broad Cast receiver - These are silent observers. Whenever app asks them to provide some info after the event occurs they will carried out the same. Ex. battery low indicator
5) Content Providers : Address sharing, Photo Gallery etc.
Lifecycle of android apps :
1) Starting state : before apps get running it will be in Starting state
2) Running state : once apps come in foreground it will be in running state and user is interacting with it.
3) Paused state : when apps is in foreground state but user is not interacting with it then it is in paused state.
4) Stopped State : when user is not interacting with it and it is in background then it is in stopped state.
5)Destroyed state : when application is no more available for use i.e. it is not in stopped state.
No comments:
Post a Comment