开发者

android: alarm statusicon like the original alarm app?

开发者 https://www.devze.com 2023-01-17 00:41 出处:网络
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 an

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

精彩评论

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

关注公众号