You need to use Flag_activity_new_task to pull out another activity from an activity by intent.
Otherwise, there will be force close:
03-01 18:49:37.888 E/androidruntime (2706): FATAL exception:main
03-01 18:49:37.888 E/androidruntime (2706): Android.util.AndroidRuntimeException:Calling startactivity () from outside Of an Activity context requires the Flag_activity_new_task FLAG. Is this really what do you want?
Flag_activity_exclude_from_recents:
If the activtivity is only a functional fragment, and there is no practical meaning, there is no need to appear in the long Press home button to bring up the most recently used Program Class table, then use flag_activity_exclude_from_recents
Intent Intent = new Intent (this, waitingfallbackdialog.class);
Intent.setflags (Intent.flag_activity_new_task | intent.flag_activity_exclude_from_recents);
StartActivity (Intent);
Calling StartActivity () from outside of an Activity context requires the Flag_activity_new_task FLA