Does anyone know if there’s a way to access past app installs via the sdk? I want to be able to get a list of all the apps users have downloaded from the Market.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can use the PackageManager. This class contains
getInstalledApplications()andgetInstalledPackages()which can be used to get information about installed applications. I haven’t tried these, but if they don’t work you can also tryqueryIntentActivities()with theACTION_MAINintent as an argument to get information about all activities that can be launched through the launcher.When you get a set of all applications that are installed on the device, you can try to remove the pre-installed Android applications to get the list of user installed applications. I guess that the pre-installed applications are somewhat static so you should be able to get a list of them easily (like from a newly created Android emulator).
Hope it helps.