B4A Question [SOLVED] Alternative to check if WhatsApp is installed without using PackageManager - QUERY_ALL_PACKAGES on + SDK30 - scsjc    Nov 8, 2021 Until now I used PackageManager to check which applications were installed (for example WhatsApp) Currently google requires QUERY_ALL_PACKAGES in Manifest in order to have a list of Installed Packages. Is it possible to know if WhatsApp is installed, via tried through some kind of Try-Catch error? Sub APKinstalada(packagename As String) As Boolean Try Dim PM As PackageManager...: " & packagename) Return False End Try End Sub Dim pm As PackageManager... 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 intent - Rusty    Mar 28, 2012 .Version, Version.NewPackage)) Instl.SetType("application/vnd.android.package-archive"... B4A Question Install apk from App - BjoernB    Mar 31, 2025 ("application/vnd.android.package-archive") Else Provider.SetFileUriAsIntentData(i, apkFile) i.SetType("application/vnd.android.package-archive") i.Flags = Bit.Or...(apkFile)) i.Initialize("android.intent.action.INSTALL_PACKAGE"... an error message stating that there is an issue with the package. A Google search suggests... Spanish (SOLUCIONADO)Error al instalar APK desde codigo - josejad (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 Self update APP (System App and Device Owner) - Mike1970    Feb 24, 2025 ("application/vnd.android.package-archive") End If 'TODO - C'è da vedere come e se....INSTALL_PACKAGE", Starter.Provider.GetFileUri(apk_filename)) i.Flags = Bit.Or(i.Flags, 1... be used the "PackageManager" to do these things https://stackoverflow.com/a/73986373/10781209... B4A Question Update APK with Intent - Response - Magma (first post)    Jun 4, 2025 ))
i.SetType("application/vnd.android.package-archive")
End If
Try...("android.intent.action.INSTALL_PACKAGE", Starter.Provider.GetFileUri(FileToInstall... 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)... Page: 1   2   3   4   5   6   7   |