B4A Question get version of apk-file without installation - peacemaker    Apr 6, 2016 final PackageManager pm = getPackageManager();
String apkName = "example.apk";
String fullPath = Environment.getExternalStorageDirectory() + "/" + apkName;
PackageInfo info = pm.getPackageArchiveInfo(fullPath, 0);
Toast.makeText(this, "VersionCode : " + info..., help to realise pm.getPackageArchiveInfo... B4A Question [SOLVED] AppUpdating Android 10 - techknight    Oct 21, 2020 I have noticed with Android 10 on my Pixel 3a, every time I hit Yes to do an app update from my server, its crashing with this error: android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.VIEW dat=file:///storage/emulated/0/Android/data/md.bkrm01/files/tmp.apk typ=application/vnd.android.package-archive flg=0x20000 } I still target a much lower SDK since I sideload all my apps and dont use the play store. But this is the first time... B4A Question Install APK not working - victormedranop    Feb 2, 2019 it's strange this case was workig but now its not. its android 19, but compiler with andorid 28 in b4a 8+ my code LogColor("UPDATE APK with activity start",Colors.Yellow) Dim iIntent As Intent iIntent.Initialize(iIntent.ACTION_VIEW, "file://" & File.Combine(File.DirRootExternal, public_variables.DOWNLOAD_FILENAME)) iIntent.SetType("application/vnd.android.package-archive") StartActivity(iIntent) and... Spanish (SOLUCIONADO)Error al instalar APK desde codigo - José J. Aguilar (first post)    Aug 8, 2021   (1 reaction) Echa un ojo al primer y quinto resultado
https://www.b4x.com/android/forum/pages/results/?query=package-archive... B4A Question Update app using file provider - ronell    Jun 19, 2018 i have this code to install apk but after i change the target sdk = 26 in manifest this code fails( FileUriExposedException error)... is there a sample code using file provider to access apk file in external storage and install? Dim iIntent As Intent iIntent.Initialize(iIntent.ACTION_VIEW, "file://" & File.Combine(File.DirRootExternal, "myapp.apk")) iIntent.SetType("application/vnd.android.package-archive"... B4A Question install intent - Rusty    Mar 28, 2012 .Version, Version.NewPackage)) Instl.SetType("application/vnd.android.package-archive"... B4A Question Wait for intent to finish? - aidymp    Dec 24, 2016 Hi, I am installing an apk via: If tmp.EqualsIgnoreCase(".apk") Then Dim iIntent As Intent iIntent.Initialize(iIntent.ACTION_VIEW, "file://" & File.DirRootExternal&"/Download/"&filename) iIntent.SetType("application/vnd.android.package-archive") StartActivity(iIntent) End If Is there a way to know if the intent has finished? So I can for example delete the .apk?? Thanks Aidy... B4A Question Autostart after update - marcick    Jun 2, 2015 Hi guys, after I have downloaded and started an update fo rmy app using this code, is it possible to auto start it ? Dim i As Intent i.Initialize(i.ACTION_VIEW, "file://" & File.Combine(File.DirRootExternal, "temp.apk")) i.SetType("application/vnd.android.package-archive") StartActivity(i)... B4A Question Install intent no longer working - nibbo    Sep 9, 2020 I have an install apk intent which has been working for years but now fails. I guess this is another Android 10 issue? Dim i As Intent i.Initialize(i.ACTION_VIEW, "file://" & File.Combine(File.DirDefaultExternal, "AppName.apk")) i.SetType("application/vnd.android.package-archive") StartActivity(i) When the above executes I get the error below: android.content....package-archive flg=0x20000 } Thanks Nibbo... B4J Tutorial UI apps packaging - self contained installers - Erel    May 25, 2020   (28 reactions)   tags: Installer Apps B4J, UI apps packaging install standalone UI apps B4J Packager is a small utility that uses javapackager to create a single file... depends on the following additional libraries: Archiver (B4A library) and jControlFX Using this tool.../tools/unix/javapackager.html 3. It is recommended to run the packager from the IDE (at least in... with: java -jar B4JPackager.jar 4. The installers will use the app package name to identify the app... javapackager point to Java 8. 6. If running on a Mac then you probably should change the package to pkg. See... Page: 1   2   3   4   5   6   7   |