Notification notification = new Notification();
Notification的设置过程……..
nm.notify(0, notification); //发送到状态条上
Notification的设置过程……..
nm.notify(0, notification); //发送到状态条上
解决方案 »
- android中常见控件EditText,TextView,Button,menu简单用法实例
- activity跳转后 service是否工作
- android 蓝牙如何检查设备连接状态,怎么确认已连接,未连接
- android init进程的作用如何?其工作流程如何
- android错误,请高手解答!
- android应用如何获得到组件更细的运行状态
- Android调用WebService(cxf),部分字符乱码
- android 使用MediaPlayer播放音乐模拟器有声音真机没有
- 通过adb push一个可执行文件到/data/目录下,可是运行出错No such file or directory
- 安卓app启动时会扫描手机中是否有软件XX,一旦有就会自动结束进程
- android 如何判断手机是否支持触摸
- 使用SlidingDrawer之后主体内容消失何解
Notification notification =
new Notification(R.drawable.icon, "音乐播放器,hello world.\nToday is Sunday.", System.currentTimeMillis());可以换行显示,如上面,先显示“音乐播放器,hello world.”,然后这行往上移出,再显示“Today is Sunday.”这一行。
不能同时显示两行的。
你实测过吗?notification的contentView直接受remoteview