APPLICATION COMPONENTS:
1. Activity(ACT)
activity, window(W), view(V)
Activity.setContentView()
2. Service(SVC)-
3. Broadcast Receiver(BR)-
4. Content Provider(CP)-
ContentProvider(CP) and ContentResolver(CR)
ACTIVATING COMPONENTS USING INTENT
ACT:
SVC:
BR:onReceive()
SHUTTING DOWN COMPONENTS
ACT:finish()finishActivity(). (startActivityForResult())
SVC:stopSelf() Context.stopService().
THE MANIFEST FILE
INTENT FILTERS
ACTIVITIES AND TASKS
The principal Intent flags are:
FLAG_ACTIVITY_NEW_TASK
FLAG_ACTIVITY_CLEAR_TOP
FLAG_ACTIVITY_RESET_TASK_IF_NEEDED
FLAG_ACTIVITY_SINGLE_TOPThe principal <activity> attributes are:taskAffinity
launchMode
allowTaskReparenting
clearTaskOnLaunch
alwaysRetainTaskState
finishOnTaskLaunch
No comments:
Post a Comment