[英]how to show notification that shows up on main screen and all applications - Android
[英]How to minimize all opened applications and show home screen?
我進行了搜索,但沒有得到解決方案。 我想顯示主屏幕,例如單擊按鈕在android設備中按主屏幕鍵。
您可以這樣顯示主屏幕:
Intent startMain = new Intent(Intent.ACTION_MAIN);
startMain.addCategory(Intent.CATEGORY_HOME);
startMain.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
startActivity(startMain);
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.