I try to get my Reciever running, but at the moment it fails:

My Reciever:

public final class ReplaceReceiver extends BroadcastReceiver
{

        private final static String LOG_TAG =
ReplaceReceiver.class.getSimpleName();

        /*
         * (non-Javadoc)
         *
         * @see
android.content.BroadcastReceiver#onReceive(android.content.Context,
         * android.content.Intent)
         */
        @Override
        public void onReceive(final Context _context, final Intent _intent)
        {
                Log.i(LOG_TAG, "Enqueue Alerts, Action is :" + 
_intent.getAction());
                Toast.makeText(_context, "Package Installer ",
Toast.LENGTH_LONG).show();
                startService(_context);
        }


In the Manifest:

                <receiver
                        
android:name="de.macsystems.windroid.receiver.ReplaceReceiver"
                        android:label="@string/app_name"
                        android:enabled="true"
                        android:exported="false">
                        <intent-filter>
                                <intent-filter>
                                        <action
                                                
android:name="android.intent.action.PACKAGE_CHANGED" />
                                        <action
                                                
android:name="android.intent.action.PACKAGE_REMOVED" />
                                        <action
                                                
android:name="android.intent.action.PACKAGE_ADDED" />
                                        <action
                                                
android:name="android.intent.action.PACKAGE_INSTALL" />
                                        <action
                                                
android:name="android.intent.action.PACKAGE_REPLACED" />
                                        <data
                                                android:scheme="package" />
                                </intent-filter>
                        </intent-filter>
                </receiver>


What i do is, i install the App in the Emulator and just do a "project
clean" and do an reinstall (using Eclipse). Should my reciever be call
or what is missing there ? I also tried with

                                        <data
                                                android:scheme="package"
                                                
android:path="de.macsystems.windroid" />


which also is not working. So any help would be nice to get it
working! I do not see any Toast or Info Massage in the Logcat.

regards,
Jens



-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to