代碼控制回到桌面

其實就只須要發一個廣播就OK android

Intent i= new Intent(Intent.ACTION_MAIN); spa

   i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); //android123提示若是是服務裏調用,必須加入new task標識 i.addCategory(Intent.CATEGORY_HOME); startActivity(i);
相關文章
相關標籤/搜索