See the App Inventor Extensions document about how to use an App Inventor Extension.
For questions about this extension or bug reports please start a new thread in the App Inventor community. Thank you.
For feature requests please contact me by email. To be a sponsor of a new method already is possible starting from only 10 USD! With your contribution you will help the complete App Inventor community. Thank you.
Aug 24th, 2017: Version 1: initial version
Nov 22th, 2020: Version 2: bug fix: icon was not extracted for all packages; API 30 update: icons will now be stored in subdirectory /Packages of the the ASD - application specific directory, which is
Extension to get information about installed apps and to be able to launch an installed app using a package name.
Required permission: none
Return the default directory (READ ONLY), which is
Return whether Warnings should be suppressed
Set whether Warnings should be suppressed.
Get Package informations.
Event indicating that package information have been received. The result is provided in JSON format.
"app name":"Google","version name":"184.108.40.206.arm64",
Event indicating the progress of getting packages.
It helps to be familiar with working with lists of lists and the lookup in pairs block...
Q1: Due to the
Package visibility in Android 11, I can't get a list of all installed apps, not even directly querying with the package name..
A: See here: The limited package visibility reduces the number of apps that appear to be installed on a device, from your app's perspective. You might want to add the permission QUERY_ALL_PACKAGES into the manifest
Note: If you publish your app on Google Play, your app's use of this permission is subject to approval based on an upcoming policy. To add that permission into the manifest, you can use the extension tsf.queryallpackages.aix. Thank you anonwins.
Developing and maintaining snippets, tutorials and extensions for App Inventor takes a lot of time.
I hope it saved some of your time. If yes, then you might consider to donate a small amount!
or donate some mBTC to Address:
Thank you! Taifun
This work by Pura Vida Apps is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License
with attribution (name=Pura Vida Apps and link to the source site) required.