I am using ACTION_MY_PACKAGE_REPLACED to receive when my app is updated or resinstalled. My problem is that the event is never triggered (I tried Eclipse and real device). T
Actually, your app will start twice when you install your apk. Once for each receiver that you have set.
When you are Listening to android.intent.action.PACKAGE_REPLACED
then you need to check for the package-name in the intent.getData()
Note that intent.getData()
will be Null when it is from
android.intent.action.MY_PACKAGE_REPLACED
I think using one of them is enough.