Nithin
Nithin

Reputation: 221

Checking time in devices without automatic date and time option (Other than using time servers)

My android app requires it that the users' devices are set to the right time. I'm currently doing this by checking if Automatic Date and Time option is enabled in the settings, but I'm getting complaints from users who don't have the option in their devices. Using time servers is an option but I'd have to settle for approximate values, considering the network delay on slow connections. I need help with another solution. Maybe the method android system uses to get the right time? Thanks in advance!

Upvotes: 0

Views: 73

Answers (1)

Gautam
Gautam

Reputation: 564

An out of the box solution will be to experiment with GPS time. That'd require your app to have GPS access, and you can get the time from GPS.

Upvotes: 1

Related Questions