1, about Android.permission.STOP_APP_SWITCHES permission http://blog.csdn.net/ixiaobu/article/details/18226917
If you want to start your home-to-back activity through the service to the front desk, you have two options:
1), startactivity (i) method
Intent i = new Intent (mactivity,myactivity.class); I.setflags (intent.flag_activity_new_task); StartActivity (i);
2), Movetasktofront method:
Activitymanager am = (activitymanager) getsystemservice (activity.activity_service); Am.movetasktofront (Mactivity.gettaskid (), 0);
But at the same time there are two problems:
1), the first method: Wait a few seconds for the activity to show up
2), the second method: not at all about
This is the androidmanifest.xml you need to add "android.permission.STOP_APP_SWITCHES" user rights, provided that the system must be applied in order to be able to refer to the link in the explanation
Android Application Development Common knowledge (2)