简体   繁体   English

如何从本地android闹钟应用程序获取时间。 是否有机会从AlarmClock功能获取时间?

[英]How to get the time from native android alarm clock application. Is there a chance to get the time from AlarmClock function?

Intent intent = new Intent(AlarmClock.ACTION_SET_ALARM);

我想从AlarmClock.Action_Set_Alarm获取设置的值,以便将文本设置为应用程序中的文本字段。

you can solve this problem with broadcast receiver 你可以用广播接收器解决这个问题

https://stackoverflow.com/search?q=broadcast+receiver+alarm+ https://stackoverflow.com/search?q=broadcast+receiver+alarm+

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM