Robert
Robert

Reputation: 1266

Get information when user change time on phone

Hey, is there any easy way to get information when user will change time in android settings? I mean that I'm looking for better solution than thread which is checking the time every one minute and compare with current time.

Upvotes: 0

Views: 358

Answers (3)

Alan
Alan

Reputation: 3745

I just posted a reply to thread time zone example not working in emulator which shows how you must be careful to specify action.TIME_SET in your manifest file, and filter for Intent.ACTION_TIME_CHANGED in your broadcast receiver.

Upvotes: 0

inazaruk
inazaruk

Reputation: 74790

You can listen to ACTION_TIME_CHANGED or ACTION_TIMEZONE_CHANGED or both broadcasts.

Upvotes: 0

Kakey
Kakey

Reputation: 4024

you can use Broadcase receiver Here is an example

Upvotes: 1

Related Questions