程序中调用其它程序的Activity

Intent intent = new Intent(Intent.ACTION_MAIN);
ComponentName componentName = new ComponentName("com.android.settings", "com.android.settings.WirelessSettings");
intent.setComponent(componentName);
 
startActivity(intent);

"com.android.settings"是要打开的程序包名,"com.android.settings.WirelessSettings"是要打开的Activity。

你可能感兴趣的:(Activity,setcomponent)