Hello,

anyone can point me why i get alway a ClassNotFoundException in my
BroadcastReviever using a custom Parcleable ?

I enqueue Alarms, which trigger the BroadcastReciever:

                for (int i = 0; i < alertsToEnqueue.size(); i++)
                {
                        final Alert alert = alertsToEnqueue.get(i);
                        final Intent intent = new Intent(_context,
AlarmBroadcastReciever.class);
                        intent.putExtra(IntentConstants.ALERT, alert);
        
intent.setAction(IntentConstants.DE_MACSYSTEMS_WINDROID_ALERT_TRIGGER);
                        final PendingIntent pendingIntent =
PendingIntent.getBroadcast(_context,
REQUEST_COUNTER.incrementAndGet(),
                                        intent, PendingIntent.FLAG_ONE_SHOT);

                        alarmManager.setRepeating(AlarmManager.RTC_WAKEUP, now +
INITIAL_DELAY, (10L * 1000L), pendingIntent);

                        if (Logging.isLoggingEnabled())
                        {
                                Log.d(LOG_TAG, "Enqueued Alert " + 
alert.toString());
                        }
                }


// In my Manifest:

                <receiver
        
android:name="de.macsystems.windroid.receiver.AlarmBroadcastReciever"
                        android:label="@string/app_name"
                        android:enabled="true"
                        android:exported="false">
                        <intent-filter>
                                <action
                                        
android:name="de.macsystems.windroid.ALERT_TRIGGER" />
                        </intent-filter>
                </receiver>


Thx for your help,
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