Hello in my Android app I would like to take the time since the app was opened Initially what I tried was getting at the time the app was loaded from the server and then took the difference with the current time from the device. But by doing so that the user changes the time, I can not get real time. It's not right to not kill the server again for this
Is there any way to achieve this in Android?
Please share your valuable suggestions.
Thanks in advance :)
"SystemClock" class, "uptimeMillis ()" Try the method.
As a result, a variable when you start the app.
Comments
Post a Comment