看着是没问题,不知道楼主可以提供更多的代码吗?
解决方案 »
- webview下载的问题
- 看到很多Android程序里面传Context对象,但不知道这个对象怎么理解,对应AP的实例还是什么其它?
- 求助,用模拟器运行启动android应用,启动时报应用的外部jar项目
- android 蓝牙createBound函数
- 启动android项目时出现下面的错误!
- RSS问题,调用开源syndication 操作超时。。
- android开发时候遇到的急需解决的问题
- 获取手机好???急、、
- 一个关于同个程序不同平台不同结果 希望各位帮我看看 why
- 高人指点一下:可不可以编写一个代码里找不到主Activity的远程service?
- android中在wifi状态下如何重新获取ip ,高手,大神请进!!!
- 为什么屏幕分辨率不对 !!我用其他的窗口就对 , 是不是窗口问题 求大神了
OtherActivity.class);
PendingIntent pi = PendingIntent.getActivity(
SystemNotificationActivity.this, 0, intent, 0);
Notification notify = new Notification();
notify.icon = R.drawable.ic_launcher;
notify.tickerText = "XXX";
notify.when = System.currentTimeMillis();
notify.defaults = Notification.DEFAULT_VIBRATE;
notify.ledARGB = Color.BLUE; //这里是颜色,我们可以尝试改变,理论上0xFF0000是红色,0x00FF00是绿色
notify.ledOnMS = 300;
notify.ledOffMS = 1000;
notify.flags = Notification.FLAG_SHOW_LIGHTS | Notification.FLAG_ONGOING_EVENT;
notify.setLatestEventInfo(SystemNotificationActivity.this,
"YYY~", "ZZZ", pi);
NotificationManager notificationManager = (NotificationManager) getSystemService(NOTIFICATION_SERVICE);
notificationManager.notify(NOTIFICATION_ID, notify);
楼主,认识我不- -两次发帖都是下班时间,不错哟