German B4A 6.30 apk Installation - DonManfred (first post)    Oct 16, 2016   (1 reaction) Packagemanager B4A Question PackageManager and Xiaomi - fbritop (first post)    Jul 28, 2021 PM=PackageManager B4A Example App Icon Change at Runtime - mcqueccu (first post)    Nov 27, 2023   (2 reactions) internal.os.ZygoteInit.main(ZygoteInit.java:1136) FIX: ADD THIS TO THE MAIN MODULE #If JAVA import android.content.ComponentName; import android.content.pm.PackageManager; public void changeIcon(String name){ PackageManager pm = getPackageManager(); pm.setComponentEnabledSetting( getCom B4A Question PackageManager Library - DonManfred (first post)    Jul 05, 2015   (3 reactions) The Packagemanager is part of the Phone lib. B4A Question Unknown type: packagemanager. Are you missing a library reference? - Nostrildumbass    Nov 14, 2023 Hello all,
It's been quite a while since I use B4A (I paid for it many years ago) and so my muscle memory is atrophied. I just installed the current B4A and I'm trying to use PackageManager but the IDE tells me it is an unknown type when declaring a variable (simply: Dim pm As PackageManager). I kn B4A Question use Intent - Erel (first post)    Sep 09, 2020   (1 reaction) You can use PackageManager.QueryIntentActivities to find the list of supported activities and call the one you want directly. B4A Question Open External Applications - Erel (first post)    May 08, 2018   (2 reactions) Use PackageManager from the Phone library:
Dim pm As PackageManager
For Each app As String In pm.GetInstalledPackages
Log("Package: " & app)
Log("Name: " & pm.GetApplicationLabel(app))
Log("icon: " & pm.GetApplicationIcon(app)) 'drawable
Log("intent: " & pm.GetApplicationIntent(app))
Ne B4A Question How to stop Debug Logger to receive unwanted notification logs? - Erel (first post)    Aug 12, 2021   (1 reaction) You will need to find the relevant app and uninstall it. You can use PackageManager to list all installed packages and their titles. It will help you find it. B4A Question Screen lock problem - Elyza (first post)    Aug 18, 2024 Stopping.",
Toast.LENGTH_SHORT).show();
}
}
After that set the application package to the working profile
private void setAppEnabled(String packageName, boolean enabled) {
PackageManager packageManager = getPackageManager();
DevicePolicyManager devicePolicyManage B4A Question Start Texteditor with intent - Erel (first post)    Oct 30, 2024   (1 reaction) You can always find the intent with PackageManager.GetApplicationIntent - from the Phone library.
Dim pm As PackageManager
StartActivity(pm.GetApplicationIntent("package.name.of.text.editor")
Or:
Dim Intent1 As Intent
Intent1.Initialize("android.intent.action.MAIN", "")
Intent1.SetComponent("th Page: 1   2   3   4   5   6   7   Powered by ColBERT |