CheckAppVersion
Author: DonManfred (wrapper)
Version: 1
AppVersion
Events:
Example
Known issues: it seems that it does not work for every app...
I started trying with com.whatsapp and org.telegram but these boths returns the String "Version may differ in different Android versions).
Anyway: Maybe it is of help for you to check your appversion on Googleplay to know if there is a newer version available.
Author: DonManfred (wrapper)
Version: 1
AppVersion
Events:
- version (newversion As String)
- CheckAppData (packagename As java.lang.String, lang As java.lang.String) As void
- Initialize (ba As anywheresoftware.b4a.BA, EventName As java.lang.String) As void
- android.permission.ACCESS_NETWORK_STATE
- android.permission.INTERNET
Example
B4X:
Sub Process_Globals
Dim app As AppVersion
End Sub
Sub Globals
End Sub
Sub Activity_Create(FirstTime As Boolean)
app.Initialize("App")
End Sub
Sub App_version(newversion As String)
Log($"App_version(${newversion})"$)
End Sub
Sub Activity_Resume
app.CheckAppData("com.procoit.kioskbrowser","de")
End Sub
Known issues: it seems that it does not work for every app...
I started trying with com.whatsapp and org.telegram but these boths returns the String "Version may differ in different Android versions).
Anyway: Maybe it is of help for you to check your appversion on Googleplay to know if there is a newer version available.