通过Service下载文件,然后想写个notification提示下载完成哪位高手给出示例代码啊!!!!
解决方案 »
- 别人托问一个问题,请大家帮忙解决
- Timer().schedule ,报ArrayIndexOutOfBoundsException
- 请教:同一个线程内,可以用sendMessage,handleMessage这样的方式么
- Android如何实现不同应用之间的调用
- 图像识别主要用到哪些技术
- 如何usb连接电脑时的提示
- 求教:如何监听应用无任何操作
- Activity 启动一个死循环线程无响应
- 最近编写一个蓝牙socket出现的问题,求解决
- 安卓类似于朋友圈的评论功能,当点击评论是从底部弹出输入框,求大家指点下。
- Webview 点击网页上的edit框怎么禁止他自动缩放?
- android 如何压缩图片
registerNotification = new Notification ();
registerNotification.tickerText = "提示标题";
registerNotification.icon = R.drawable.main_logo;
registerNotification.when = System.currentTimeMillis();
PendingIntent pt = PendingIntent.getActivity(Service实例, 0, null, 0);
registerNotification.setLatestEventInfo(Service实例, "提示内容", "提示标题", pt);
registerNotificationManager.notify(REGISTER_ID, registerNotification);