Android Question Running time of the Android version

khwarizmi

Active Member
Licensed User
Longtime User
Hi all

How do I check the running time of the Android version?
 

Alexander Stolte

Expert
Licensed User
Longtime User
With a API.
and with
B4X:
https://endoflife.date/api/android.json
you get a json string.

You can always query the json string, then you are always up to date, or you can copy it and put it in your app.

Paste the json string to the following website to generate B4X code:
 
Upvote 0

khwarizmi

Active Member
Licensed User
Longtime User
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.
 
Upvote 0

Alexander Stolte

Expert
Licensed User
Longtime User
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.
 
Upvote 0

drgottjr

Expert
Licensed User
Longtime User
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.
 
Upvote 0

khwarizmi

Active Member
Licensed User
Longtime User
@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?
 
Upvote 0

drgottjr

Expert
Licensed User
Longtime User
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.
 
Upvote 0
Top