Diese Seite mit anderen teilen ...

Informationen zum Thema:
WinDev Forum
Beiträge im Thema:
Erster Beitrag:
vor 1 Jahr, 6 Monaten
Letzter Beitrag:
vor 1 Jahr, 5 Monaten
Beteiligte Autoren:
iso, Arie, Danny Lauwers, ccc2, Fabrice Harari

Android App (WM21)

Startbeitrag von iso am 19.01.2017 19:18


I have an android app I created in wm21 for a specific company.
Works perfectly well, but I need to issue updates, I don't want it on Google play store, what's the best way to do this?





if you don't want it on the play store, then each and every phone and table using it must be setup to authorize installs from other sources than the play store (which is a security risk and frown upon by a lot of companies).

So the first thing is to check if your customer is ok with that, dn if every user will know how to do that...

If you are good to go, than you need to put in place your own automatic update system.
Because your current version does not include it, you will need to first manually update each device ONCE.

Once the automatic update version is in place, it will:
- download a small text file every few days (your choice) from your server (or a google drive link)
- read the content (a version number) and compare it to the current app version number
- if newer, read the second line where a download url for the apk is written
- use httprequest to download the apk
- run the apk to start the install
- endprogram your current version.

Best regards

von Fabrice Harari - am 19.01.2017 19:28

in addition to Fabrices answer, here is a little piece of java code to install the APK file you just downloaded

import android.content.Intent;
import android.net.Uri;
import java.io.File;

public static void InstallAPK(String sAPK){
Intent i = new Intent();
i.setDataAndType(Uri.fromFile(new File(sAPK)), "application/vnd.android.package-archive");

von Arie - am 19.01.2017 19:58
Hi Arie,

where do you save the downloaded apk ?

von ccc2 - am 20.01.2017 02:34
The APK is saved in SysDirStorageCard() and also started from there using the function above

von Arie - am 20.01.2017 07:43

Thanks for your advice and help Fabrice/Arie

After speaking to the Client, they have decided Play store would be the best route, i have added the the App in Closed Beta Testing with a list of users, they all have the app installed and working fine, however, if i create a new version the user physically has to go to the play store to update (even though its set to auto update) is there a way for when the users opens the app it checks the version against the version on the app store, i could then offer a link to the app store for them to update.



von iso - am 23.01.2017 10:48

It seems that this is not directly supported and you need to look in the data of your Google Play store app page to get the version currently on the Play store.

See more details in this forum:

I need todo the same, notify the user that there is an updated version.

Now it sometimes takes 1 or 2 days before the automatic update is presented.
This also has something todo with the Google Play cached server.


von Danny Lauwers - am 23.01.2017 14:23
Hi Danny,

Yes i read it takes a while for the auto update to actually 'auto update'. I will take a look at your link thanks.


von iso - am 23.01.2017 19:33
Zur Information:
MySnip.de hat keinen Einfluss auf die Inhalte der Beiträge. Bitte kontaktieren Sie den Administrator des Forums bei Problemen oder Löschforderungen über die Kontaktseite.
Falls die Kontaktaufnahme mit dem Administrator des Forums fehlschlägt, kontaktieren Sie uns bitte über die in unserem Impressum angegebenen Daten.