开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜