2013-08-02 44 views
0

我想從任何應用程序發送意向到所有應用程序屏幕。有關所有應用程序屏幕All app screen example的參考信息。我無法找到任何關於此意圖的幫助。任何幫助將不勝感激。 enter image description here如何將應用程序發送到所有應用程序屏幕

當我從任何對話框中單擊取消時,它應該退出應用程序,用戶必須登陸所有應用程序屏幕。

+0

檢查了這一點http://stackoverflow.com/questions/12481369/intent-to-start-all-apps-activity –

+0

還是這個:http://stackoverflow.com/questions/9643729/launch-launcher-app-drawer-from-an-an-application – zapl

回答

1

我用:

Intent startMain = new Intent(Intent.ACTION_MAIN); 
startMain.addCategory(Intent.CATEGORY_HOME); 
startMain.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); 
startActivity(startMain); 
+0

這是否對您有幫助?如果有用,接受爲答案? – iaindownie

+1

它不會幫助,@iaindownie。您的代碼顯示主屏幕,而不是他想要的,抽屜(所有應用程序) –

相關問題