我參考這邊的範例產生了一些問題
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