May I know what the differences between getInstalledApplications
and getInstalledPackages
? The documentation doesn't say much.
Application
tag, and just about it. Forget about activities, receivers, services and go on.Both methods will provide info regarding whatever application, regardless they have or they have not declared an android.intent.category.LAUNCHER
intent category in some activity.
In addition, both methods will retrieve one PackageInfo/ApplicationInfo per APK, or being more specific, for package name.
I think the term "Application
" refers here to "Startable by the user" / Appears on the launcher.
This means, there are
a) Packages which are not executable directly (example: "DRM content", "Google Partner Setup" or "Market Updater" on my sgs2) .
b) Packages which provide multiple Application
. Yes you heared right. One package could have multiple Applications - two launcher entries with icons. That's possible if you mark two or more Activities in your manifest.xml as android.intent.category.LAUNCHER
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With