作者VVll (信)
看板AndroidDev
标题[问题] NotificationManager
时间Mon May 7 15:34:24 2012
我参考这边的范例产生了一些问题
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