开发者

how to receive broadcastrecevier, when device's date automatically change?

开发者 https://www.devze.com 2023-01-31 10:16 出处:网络
I am using ACTION_DATE_CHANGED in my Broadcast Receiver, and android.intent.action.DATE_CHANGED in <receiver>...</receiver> in my manifest file. I got result, when will user set device\'s

I am using ACTION_DATE_CHANGED in my Broadcast Receiver, and android.intent.action.DATE_CHANGED in <receiver>...</receiver> in my manifest file. I got result, when will user set device's date manually using application->Date & Time setting->set date. But I don't want it, I want to receive, when device will change date autom开发者_开发知识库atically ie depending upon device's time.is it possible?


Use AlarmManager and set yourself a recurring alarm that goes off at midnight.

0

精彩评论

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