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.
精彩评论