Android Question Non GooglePlay app update from my website for update

yfleury

Active Member
Licensed User
Longtime User
I have an app outside from google play store. It's for private use for my team

my app download the apk file from my website in DirInternal

but I can't install the new apk.
I set permission in manifest
AddPermission(android.permission.REQUEST_INSTALL_PACKAGES)
I authorise my app for that permission
I try this code
B4X:
    If File.Exists(File.DirInternal, "1.apk") Then
        Dim pm As PackageManager
        Dim in As Intent
        in = pm.GetApplicationIntent("1.apk") ' PM = Packagemanager
        If in.isinitialized Then
            StartActivity(in)
        End If
but nothing append
 

udg

Expert
Licensed User
Longtime User
Eventually, have a look at my lib AppUpdating (source code provided; feel free to extract any snippet of code).
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
Or follow this Tutorial:
 
Upvote 0
Top