1、发广播
2、Intent intent = new Intent(Intent.ACTION_MAIN);;
intent.addCategory(Intent.CATEGORY_LAUNCHER);
intent.setComponent(new ComponentName(info.activityInfo.packageName,
info.activityInfo.name));
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
context.startActivity(intent);
3、
在AndroidManifest.xml里面的intent-filter中,给这个activity命名 action:name
< intent-filter>
< action Android:name="test"/>
< category android:name="android.intent.category.DEFAULT"/>
< /intent-filter>
< intent-filter>
< action android:name="test"/>
< category android:name="android.intent.category.DEFAULT"/>
< /intent-filter>
Intent intent = new Intent("test");
startActivity(intent);