B4A Question PackageManager.QueryIntentActivities - drgottjr (first post)    
Mar 2, 2025not with the phone library as written.
the list returned by queryintentactivities is a list of strings representing the package name and the class of activities which can handle your intent... is the package name. just use what's on the left.
if that is too involved, you can write your own little queryintentactivities method in java or with javaobject. you can make it return only a list...
link: .QueryIntentActivities(i)
If (installedPackages.Size > 0) Then
For Each package As String In installedPackages...
B4A Question [SOLVED] Alternative to check if WhatsApp is installed without using PackageManager - QUERY_ALL_PACKAGES on + SDK30 - scsjc    
Nov 8, 2021Until 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...
link: QUERY_ALL_PACKAGES?...
link: .SetPackage("com.microsoft.emmx")
Try
StartActivity(helpintent...
link:
helpintent.SetPackage("com.microsoft.emmx")
Try
StartActivity...
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 find and start the default launcher - Erel (first post)    
Aug 5, 2020   
(1 reaction)Yes, with PackageManager.QueryIntentActivities...
B4A Question Share plain text via bluetooth - Erel (first post)    
Aug 8, 2021Not really. You can build the list yourself with PackageManager.QueryIntentActivities but it is not really practical....
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, 2020Thanks.
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, 2018This will not work if you need attachments. A different approach is to use PackageManager.QueryIntentActivities and try to filter out unwanted apps....
B4A Question How to get a list of installed music players? - NeoTechni    
Sep 20, 2014http://stackoverflow.com/questions/4586684/how-to-get-a-list-of-installed-media-players
Intent intent =newIntent(Intent.ACTION_VIEW);
Uri uri =Uri.withAppendedPath(MediaStore.Audio.Media.INTERNAL_CONTENT_URI,"1");
intent.setData(uri);List<ResolveInfo> playerList;
playerList = packageManager.queryIntentActivities(intent,0);
How would I convert that to B4A?...
Page: 1  
2  
3  
4  
5  
6  
7