Hi guys,
I am passing small bitmaps (about 30k each) from time to time, from a
service to a widget (AppWidgetProvider) via Intent, using
this code from service :
Intent intent = new Intent(intentAction);
intent.putExtra(BITMAP_EXTRA, image);
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
service.sendStickyBroadcast(intent);
and this code from the widget:
Bitmap newImage = (Bitmap)
intent.getParcelableExtra(SINGLE_WIDGET_BITMAP);
It is working perfectly so far, but currently I am testing the same
app on Nexus One with plain bulid 2.3.4. The intent is never
broadcasted, instead, I am getting this in the log :
06-10 02:34:59.791: ERROR/JavaBinder(96): !!! FAILED BINDER
TRANSACTION !!!
06-10 02:34:59.821: INFO/ActivityManager(96): Skipping duplicate ANR:
ProcessRecord{406b6970 3175:com...../10034} Broadcast of Intent
{ act=SINGLE_WIDGET_VIEW_IS_READY flg=0x10000000
cmp=..../....SingleWidget (has extras) }
06-10 02:35:09.781: WARN/ActivityManager(96): Timeout of broadcast
BroadcastRecord{409c3720 SINGLE_WIDGET_VIEW_IS_READY} -
receiver=android.os.BinderProxy@409f5ff8, started 10001ms ago
06-10 02:35:09.781: WARN/ActivityManager(96): Receiver during timeout:
ResolveInfo{408b5140 ....LargeWidget p=0 o=0 m=0x108000}
06-10 02:40:00.540: ERROR/ActivityManager(96): ANR in ....
06-10 02:40:00.540: ERROR/ActivityManager(96): Reason: Broadcast of
Intent { act=SINGLE_WIDGET_VIEW_IS_READY flg=0x10000000
cmp=....SingleWidget (has extras) }
Again, it works with other phones with 2.1 and 2.2, but it doesn't
work with Nexus One/2.3.4 build. If I remove the Bitmap and put some
other parameter instead (like String), it works.
Any ideas? :)
--
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