Android Question Verify and Update application

jota1010

Member
Licensed User
Longtime User
Good morning, afternoons or evening.

I have installed the version 1.0 of an application on a device through B4A-Bridge, but now I need to update the version of the application remotely and also check every time you start if updates are available.

i need than when application when connect at internet,check on a server if there updates or distinct versions, if there versions distinct, update the application hosted in mobile device.

is in that part where I need help, how to update the application on the mobile device, and how to send the updates to the application from the server


Greetings and thanks.
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
1. Use HttpUtils2 to download a text file from your server that holds the current version.
2. Use PackageManager to find the current installed version.
3. If there is a new version, download the file from your server (with HttpUtils2). Copy it to File.DirRootExternal or File.DirDefaultExternal.
4. See the installation intent: http://www.b4x.com/android/forum/threads/instal-apk-automaticly.9399/#content
 
Upvote 0
Top