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 B4A Question sdk 31 problem with pm.GetApplicationIntent(AppName) - Zeev Goldstein    Jan 27, 2023 hi
i have this sub
Sub CheckAppInstalled(AppName As String) As Boolean
Dim pm As PackageManager
Dim in As Intent
in = pm.GetApplicationIntent(AppName)
If in.IsInitialized Then
Return True
Else
Return False
End If
End Sub
in sdk 30 works perfec Italian Aprire applicazioni - Sagenut (first post)    Jul 14, 2023   (1 reaction) Con questo codice Dim in As Intent Dim pm As PackageManager in = pm.GetApplicationIntent("com.google.android.youtube") 'Quì metti il packagename che ti serve If in.IsInitialized Then StartActivity(in) StartActivity(in) sapendo già il packagename dovrebbe funzionare. Faccio una prova al volo anche io B4A Question App by app - DonManfred (first post)    Aug 24, 2020   (3 reactions) Dim in As Intent in = pm.GetApplicationIntent("packagename of app to start") ' PM = Packagemanager if in.isinitialized then startactivity(in) end if B4A Question [SOLVED] Launch external App from inside my App - Erel (first post)    Oct 01, 2021   (1 reaction) You can launch any installed app (with an icon). You need to know the package name. Dim pm As PackageManager Dim in As Intent = pm.GetApplicationIntent("package.name.here") If in.IsInitialized Then StartActivity(in) End If B4A Question check if an app.package is installed without long getting all packages - DonManfred (first post)    Aug 03, 2020   (4 reactions) Why you ARE requesting all packes if you just want to check one? Dim pm As PackageManager Dim in As Intent in = pm.GetApplicationIntent("com.somewhat.package") If in.IsInitialized Then ' Package is installed End If B4A Question clickable list to launch another app [Solved] - sfsameer (first post)    Jan 27, 2021   (2 reactions) The correct code should be :
Private Sub ShowInstalledApps
Dim pm As PackageManager 'phone library
For Each pck As String In pm.GetInstalledPackages
Dim name As String = pm.GetApplicationLabel(pck)
Dim in As Intent
Dim pm As PackageManager
in = B4A Question PhoneIntents Error (intent://...) - KIM jihoon (first post)    Jul 18, 2021 Thank you for your response I understand your comments are enough I also know the explicit handling like '------------------ Dim pm As PackageManager Dim in As Intent=pm.GetApplicationIntent("com.shcard.smartpay") StartActivity(in) '------------------ However, it is not possible to explicitly mak B4A Question Open WhatsApp?!! - Sagenut (first post)    Mar 30, 2024   (2 reactions) Dim in As Intent Dim pm As PackageManager in = pm.GetApplicationIntent("com.whatsapp") StartActivity (in) You also need to add this in the Manifest AddManifestText( <queries> <package android:name="com.whatsapp"/> </queries> ) B4A Question Open another App - Mariano Ismael Castro (first post)    Aug 16, 2023   (1 reaction) This seems somewhat related seems
https://www.b4x.com/android/forum/threads/sdk-31-problem-with-pm-getapplicationintent-appname.145736/
and that
https://www.b4x.-to-check-if-whatsapp-is-installed-without-using-packagemanager-query_all_packages-on-sdk30.135863/post-859216 Page: 1   2   3   4   5   6   7   Powered by ColBERT |