2
我正在製作一個有2個活動的應用程序和一個鬧鐘。如何通過服務或警報通知「當前」活動?
如何從服務或警報中找到「當前活動」?
A)IE替換
意圖notificationIntent = new Intent(this,RatActivity.class);
與
意圖notificationIntent = new Intent(this,「CurrenActivity.class」);
B) 如果一個活動是可見的,告訴它看看一個數據庫,如果不可見的話會發出通知。
我環顧了很多(包括文檔),我仍然無法弄清楚。
任何幫助表示讚賞。
的共享偏好模式是什麼,我一直在尋找。優秀的回答 - 謝謝。 – 2011-04-09 08:05:58