Android打開通知欄並回到主頁的幾種方式

用PendingIntent.getActivity創建通知欄 在MainActivity中增加點擊事件,用來啓動NotifyService和延遲2秒銷燬MainActivity,如下面代碼所示 Intent intent = new Intent(MainActivity.this, NotifyService.class); startService(intent); tvTips.post
相關文章
相關標籤/搜索