App Inventor Extensions


Package Manager Extension

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 Extensions forum. 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

Description

Extension to get installed package information and to be able to launch an installed app using a package name.
Required permission: android.permission.WRITE_EXTERNAL_STORAGE

Some Recommendations before using this Extension

Properties


Return the default directory.


Set the default directory. Default value is /Pictures/.Packages.
Note: starting the directory with a dot hides the directory form the Gallery app.


Return whether Warnings should be suppressed


Set whether Warnings should be suppressed.

Methods


Get Package informations.


Launch app.

Events


Event indicating that package information have been received. The result is provided in JSON format.

Example:

        [
{"package name":"com.google.android.youtube",
"app name":"YouTube",
"version name":"12.32.59",
"version code":1232593400,
"icon":"\/storage\/emulated\/0\/Pictures\/.Packages\/com.google.android.youtube.png"},
{"package name":"com.google.android.googlequicksearchbox",
"app name":"Google","version name":"7.8.22.21.arm64",
"version code":300745809,
"icon":"\/storage\/emulated\/0\/Pictures\/.Packages\/com.google.android.googlequicksearchbox.png"},
{"package name":"org.telegram.messenger",
"app name":"Telegram",
"version name":"4.2.2",
"version code":10593,
"icon":"\/storage\/emulated\/0\/Pictures\/.Packages\/org.telegram.messenger.png"}
...
]


Event indicating the progress of getting packages.

Example Use

It helps to be familiar with working with lists of lists and the lookup in pairs block...
>

Pro Version

Those who are donating a small amount will additionally receive the package manager pro example app, which is able to display an icon and app name in a table listpicker, see screenshots below.

Do you need help with your App Inventor project?

I can help you: for one hour I charge 25 USD.
Please contact me at info [at] puravidaapps [dot] com for details!
For questions about App Inventor, please use the App Inventor forum. Thank you.

Terms and Conditions

Download


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!

Donation amount:

or donate some mBTC to Bitcoin Address:
1Jd8kXLHu2Vkuhi15TWHiQm4uE9AGPYxi8
Bitcoin

Thank you! Taifun
 

Download TaifunPM extension (aix file)
Download Package Manager Test (aia file)

Note: After having received your donation, I will additionally send you the Package Manager Pro Test app.
In case you are interested in this, don't forget to give me your email address...

Back to top of page ...

Creative Commons License
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.


Home | Snippets | Tutorials | Extensions | News | Forums | Links | Search | Contact