Skip to content Skip to sidebar Skip to footer

How To Update The Android Time

I am using android TAB for some app development . in my application I get UTC time from the other application(other device provides to my application via TCP socket ) . Once I rec

Solution 1:

publicstaticbooleansetCurrentTimeMillis(long millis)

Sets the current wall time, in milliseconds. Requires the calling process to have appropriate permissions. [although Only system process can change the time]

User apps cannot set the time. Only the system processes can. This is for security, but also because I think it won't have much effect-- the time does reset from the radio via network time.

reference link

Post a Comment for "How To Update The Android Time"