开发者

How to hook inside the AlarmClock system of android

I'm creating an android app, we want to add a feature that play something after each the user has canceled an alarm. I doubt that this is possible but asking anyway, because otherwise i'll need to create yet another alarm app and bundle it inside the main app.

Thanks for your help in开发者_JAVA百科 advance.


Would this post have anything to do with what you want to do? Talks about creating pending intents for when an alarm sounds.


The Alarm Clock class helps you build an intent to set a system alarm. It's new in API 9. More features and access to the timer function was added in API 19.

It's still pretty limited. Once you create an alarm or timer, you can't change it or cancel it.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜