Can't Getting Called Onreceive() When Package Cleared In Android
I am using this code for register a broadcast receiver for package
Solution 1:
I tested it now and it's work for me with this code:
<receiverandroid:name=".permission_policy.AppInstallRemoveReceiver"><intent-filterandroid:priority="100"><actionandroid:name="android.intent.action.PACKAGE_INSTALL"/><actionandroid:name="android.intent.action.PACKAGE_ADDED"/><actionandroid:name="android.intent.action.PACKAGE_DATA_CLEARED"/><actionandroid:name="android.intent.action.PACKAGE_REMOVED"/><dataandroid:scheme="package"/></intent-filter></receiver>
Solution 2:
From the Android SDK documentation on android.intent.action.PACKAGE_DATA_CLEARED
Note that the cleared package does not receive this broadcast
So it looks like you will not be informed that your own data has been cleared.
Post a Comment for "Can't Getting Called Onreceive() When Package Cleared In Android"