开发者

App Install History on Android

Does anyo开发者_运维技巧ne 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.


You can use the PackageManager. This class contains getInstalledApplications() and getInstalledPackages() which can be used to get information about installed applications. I haven't tried these, but if they don't work you can also try queryIntentActivities() with the ACTION_MAIN intent 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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜