Android Programming and Technical Programming Technical

What is activity manager in android?

Options
1) Activity manager is used to monitor and manage activity stack.
2) we can use activity manager to retrieve information about tasks that user has visited recently, information about currently running processes, information about particular task that is currently running, etc.
3) both options are true
4) none

Read Solution (Total 0)

Android Other Question

What are the indirect sub classes of Activity class?
i. ActionBarActivity
ii. LauncherActivity
iii. PreferenceActivity
iv. TabActivity

Options
1) i
2) ii & iii
3) i, ii & iii
4) All of above
What does the flag FLAG_ACTIVITY_NEW_TASK do here?

Intent i = new Intent();
i.setAction("com.android.MYACTION");
i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
startActivity(i);

Options
1) This will start a new activity in a new task, where only this activity will be there in that task and no other components. if at all new components are launched from this new activity, they will be launched in a different task.
2) It will start a new activity with matching intent filter, in old task always, here old task means task in which the current activity is running which has started new activity.
3) It will start a new activity with matching intent filter, in a new task only if that corresponding task is not in memory now.
4) It will start a new activity with matching intent filter, in a new task always.