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...?
Sub APKinstalada(packagename As String) As Boolean
Try
Dim PM As PackageManager... B4A Question Opening PDF file with fileprovider is not working for all devices - Erel (first post)    Jul 21, 2024   (1 reaction) This means that there is no installed app that can handle pdf intents. You need to catch this error. Or use PackageManager.QueryIntentActivities (Phone library) and check whether there is app that can handle the intent.... B4A Question Share plain text via bluetooth - Erel (first post)    Aug 8, 2021 Not really. You can build the list yourself with PackageManager.QueryIntentActivities but it is not really practical.... B4A Question find and start the default launcher - Erel (first post)    Aug 5, 2020   (1 reaction) Yes, with PackageManager.QueryIntentActivities... B4A Question use Intent - Erel (first post)    Sep 9, 2020   (1 reaction) You can use PackageManager.QueryIntentActivities to find the list of supported activities and call the one you want directly.... B4A Question Detect If Intent Failed - thedesolatesoul (first post)    Jul 28, 2014   (2 reactions) Like this: http://www.b4x.com/android/help/phone.html#packagemanager_queryintentactivities... B4A Question Check if pdf document can be opened - Juan Vargas (Bioagro) (first post)    Aug 27, 2020 Thanks. Tried the sample, in B4A for this line in the link you sent if (packageManager.queryIntentActivities(testIntent, PackageManager.MATCH_DEFAULT_ONLY).size() > 0) Like this For Each cn As String In pm.queryIntentActivities (Intent1, pm.MATCH_DEFAULT_ONLY) Log(cn) Next But B4A does not allow more than one parameter in the function queryIntentActivities... B4A Question Email intent + attachment: email clients only are required - Erel (first post)    Jun 17, 2018 This will not work if you need attachments. A different approach is to use PackageManager.QueryIntentActivities and try to filter out unwanted apps.... B4A Question Share Intent OnClickListener - Erel (first post)    Dec 24, 2017   (1 reaction) I think that the only possible way is to build the dialog yourself. You can use PackageManager.QueryIntentActivities to get a list of possible apps.... B4A Question How to know the app chosen by user in an intent? - Erel (first post)    Aug 24, 2016 You are looking for the first item in the list that is returned from PackageManager.QueryIntentActivities.... Page: 1   2   3   4   5   6   7   |