[問題] NotificationManager

看板AndroidDev作者 (信)時間13年前 (2012/05/07 15:34), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
我參考這邊的範例產生了一些問題 http://forum.hkgphone.com/thread-55-1-1.html timer.schedule(new TimerTask()...{ public void run()...{ NotificationManager manager= (NotificationManager)getSystemService(NOTIFICATION_SERVICE); manager.notifyWithText(1001, "わたしはSHARETOPです。", NotificationManager.LENGTH_LONG, null); HelloTwoDService.this.stopSelf(); } },5000); 有問題的CODE在manager.notifyWithText()這個方法 notifyWithText 在網路上可以找到很多使用的例子 但查詢官方文件上卻找不到這個方法 http://developer.android.com/reference/android/app/NotificationManager.html 因此想請問 notify() 如何達到跟notifyWithText()相同的功能 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 118.170.138.202
文章代碼(AID): #1Ffti4wJ (AndroidDev)