Android Question How do you know how long you've been using your phone?

Alessandro71

Well-Known Member
Licensed User
Longtime User
B4X:
'device uptime in millisec
Public Sub Uptime As Long
    Dim jo As JavaObject
    jo.InitializeStatic("android.os.SystemClock")
    Dim up As Long = jo.RunMethod("uptimeMillis", Null)
    Return up
End Sub
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…