Does anyone know how I can get a list of packages from all apps installed on Android using Qpython?
My goal is to list all apps and be able to run, using getLaunchableApplications() and the "launch" function until I could open some, but it does not work for everyone. I made tests and if I get the name of the packages I should be able to open any app with startActivity().
There's an executable
pm(package manager) inside Android, usepm list packagesto list installed packages. If you want to automate the query progress,subprocess.check_output(["pm","list","packages"])may be a good way.As for your second question--"launch the app", it has been answered here: Launch android app from SL4A script?