Thanks for the help, Alexander Stolte
.
But it seems that I did not explain the meaning clearly.
Suppose that the user bought a new device and started using it five years and 4 months ago, this is the required period of time.
That's a completely different question...
I would recommend you to open a new thread where the question is exactly this what you explained in #5. Because this has nothing to do with the android version, you want to know how long the smartphone has been in use and not the android version.
the os has several ways of telling you how long a device has been up. unless the user (who purchased the device 5 yrs and 4 months ago) has never re-booted the device, he doesn't need programming to tell him what he already knows.
@drgottjr
In the Windows operating system, there is a way to programmatically find out the time the user has spent using the operating system. Is there a way to do that in Android?
search google: "how long have i been using my android device". several options offered. one may be what you're looking for. there may or may not be an api for the one you want.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.