我正在开发一个应用程序,它需要从我的应用程序转到设备所有应用程序屏幕(单击主菜单按钮后的屏幕)...
Intent startMain = new Intent(Intent.ACTION_MAIN);
startMain.addCategory(Intent.CATEGORY_HOME);
startMain.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
startActivity(startMain);
我正在开发一个应用程序,它需要从我的应用程序转到设备所有应用程序屏幕(单击主菜单按钮后的屏幕)...
Intent startMain = new Intent(Intent.ACTION_MAIN);
startMain.addCategory(Intent.CATEGORY_HOME);
startMain.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
startActivity(startMain);