Reputation: 6496
I am able to get the package name of apps that were removed by setting up a receiver to listen for android.intent.action.PACKAGE_REMOVED intents. To get the name of the app from there, I usually ask the PackageManager for the app name corresponding to that package name. However, because i get notified that a package was removed after it was removed, I can't get the app name from the PackageManager since it is no longer installed.
Is there any way for me to get this information?
Upvotes: 0
Views: 128
Reputation: 11592
This might help you:
http://code.google.com/p/android-market-api/
Upvotes: 2
Reputation: 25584
I'm not sure, but you may need to keep a local copy of all of the app names. Register your receiver with:
<intent-filter>
<action android:name="android.intent.action.PACKAGE_REMOVED"/>
<action android:name="android.intent.action.PACKAGE_REPLACED"/>
<action android:name="android.intent.action.PACKAGE_ADDED"/>
<data android:scheme="package"/>
</intent-filter>
to keep tabs on everything (including changing names on REPLACED).
Upvotes: 1