Okay, found the missing line in my AndroidManifest.xml file by digging  
deep inside the android code ;-)

To receive these intents you have to set also the data scheme. The  
filter should look like this:
<intent-filter>
        <action android:name="android.intent.action.PACKAGE_ADDED"></action>
        <action android:name="android.intent.action.PACKAGE_CHANGED"></action>
        <action android:name="android.intent.action.PACKAGE_REMOVED"></action>
        <action android:name="android.intent.action.PACKAGE_REPLACED"></action>
        <data android:scheme="package"></data>
</intent-filter>




Am 01.09.2009 um 15:13 schrieb Lutz Schönemann:

>
> Hi, my current problem is that I don't receive an intent. I have a
> BroadcastReceiver and defined in the AndroidManifest.xml file that it
> also should receive intents with these actions
>
> - "android.intent.action.PACKAGE_ADDED"
> - "android.intent.action.PACKAGE_CHANGED"
> - "android.intent.action.PACKAGE_REMOVED"
> - "android.intent.action.PACKAGE_REPLACED"
>
> Do I need a permission to receive this broadcasts? Here is a snippet
> from my AndroidManifest.xml
>
>
> --- 8< --- 8< --- 8< ---
>
> <receiver android:name=".PEPServiceReceiver" android:exported="true"
> android:enabled="true">
>       <intent-filter>
>               <action android:name="android.intent.action.BOOT_COMPLETED"></ 
> action>
>               <action 
> android:name="android.intent.action.PACKAGE_ADDED"></action>
>               <action android:name="android.intent.action.PACKAGE_CHANGED"></ 
> action>
>               <action android:name="android.intent.action.PACKAGE_REMOVED"></ 
> action>
>               <action android:name="android.intent.action.PACKAGE_REPLACED"></
> action>
>       </intent-filter>
> </receiver>
>
> --- 8< --- 8< --- 8< ---
>
>
> thanks for help
>
> >
>


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to