Hi,
is there a possibility to find out the date of app installation?
background is that I would like to remind the user of the app with a window to it to rate the app in the Playstore.
However, this memory should not be displayed immediately after installation only after the app has been used for some days.
many thanks
Samuel
Sorry for bad english I'm German ;-)
Now I have found a solution in this thread:
http://www.b4x.com/android/forum/th...-member-from-packagemanager.16323/#post-92741
is there a possibility to find out the date of app installation?
background is that I would like to remind the user of the app with a window to it to rate the app in the Playstore.
However, this memory should not be displayed immediately after installation only after the app has been used for some days.
many thanks
Samuel
Sorry for bad english I'm German ;-)
Now I have found a solution in this thread:
http://www.b4x.com/android/forum/th...-member-from-packagemanager.16323/#post-92741
B4X:
Sub GetFirstInstallTime(Package As String) As Long
Dim r As Reflector
r.Target = r.GetContext
r.Target = r.RunMethod("getPackageManager")
r.Target = r.RunMethod3("getPackageInfo", Package, "java.lang.String", 0, "java.lang.int")
Return r.GetField("firstInstallTime")
End Sub
Last edited: