Android设备,通知区域右侧的报警图标? [英] Android, the alarm icon on the right side of notification area?

查看:182
本文介绍了Android设备,通知区域右侧的报警图标?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我设置为与内置的闹钟应用程序中的报警,将有上通知区域右侧的图标。但它不会在那里,如果我设定AlarmManager报警。有没有一种办法可以让该图标显示?


我发现它似乎闹钟居然记录写入ContentProvider的,而不是直接使用AlarmManager。我会试试看的明天。

和它似乎提供者不是意图由其他应用程序使用。


解决方案

  

有没有一种办法可以让该图标显示?


这是图标的闹钟应用程序,是固件的一部分。如果用户有一个活跃的闹钟报警才会出现该图标。它无法通过Android SDK的直接操作。

When I set an alarm with the build-in alarm clock application, there will be an icon on the right side of notification area. But it won't be there if I set an alarm with AlarmManager. Is there a way I can make that icon show?


I found it seems that alarm clock actually writes records to a ContentProvider rather than uses AlarmManager directly. I will give it a try tomorrow.

And it seems the provider is not intent to be used by other applications.

解决方案

Is there a way I can make that icon show?

That icon is for the Alarm Clock app that is part of the firmware. That icon will only appear if the user has an active Alarm Clock alarm. It cannot be directly manipulated by the Android SDK.

这篇关于Android设备,通知区域右侧的报警图标?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆