开发者

android: alarm statusicon like the original alarm app?

I am making a alarm app and was just wondering how do I show a alarm icon at the right side of the statusbar like the original alarm a开发者_JAVA技巧pp? normal notifications appear in the left side and I cant find anything about this....


Have searched for days and found it now in the alarm source code =)

Intent alarmChanged = new Intent("android.intent.action.ALARM_CHANGED");
alarmChanged.putExtra("alarmSet", true/*false if you want to hide it*/);
context.sendBroadcast(alarmChanged);


SDK applications can only use Notifications, which go on the left side of the status bar. Firmware applications can place icons elsewhere.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜