Get rid of the <data> element. On Fri, Mar 9, 2012 at 8:02 AM, ashiq sayyad <ashiqsay...@gmail.com> wrote: > Hi, > > Hope all doing well.. > > I have a broadcast receiver in my app to check if my app is installed > or deleted. So I have added following intent filter in the manifest.. > > <receiver android:name="com.packagereceiver.PackageReceiver"> > <intent-filter> > <action > android:name="android.intent.action.PACKAGE_ADDED"/> > <action > android:name="android.intent.action.PACKAGE_REMOVED"/> > <data android:scheme="package" > /> > </intent-filter> > </receiver> > But the problem is my receiver gets notification for any apps > installed or deleted on phone.. > > Is there any way to get notification only for certain predefined > packages(apps ) installation or uninstallation.. > > Thanks & Regards, > Ashiq sayyad > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to android-developers@googlegroups.com > To unsubscribe from this group, send email to > android-developers+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en
-- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android 4.0 Programming Books: http://commonsware.com/books -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en