[Mono-bugs] [Bug 645234] Deploying widget causes Settings application to crash

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Mon Nov 15 15:53:05 EST 2010



Jonathan Pryor <jpryor at novell.com> changed:

           What    |Removed                     |Added
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

--- Comment #4 from Jonathan Pryor <jpryor at novell.com> 2010-11-15 20:53:03 UTC ---
So, the good news is that Preview 7 adds BroadcastReceiver support, including
for attributes, so the TestWidget can be better written as:

    [BroadcastReceiver (
            Label="Useless Test Widget")]
    [IntentFilter (new[]{AppWidgetManager.ActionAppwidgetUpdate})]
    [MetaData (AppWidgetManager.MetaDataAppwidgetProvider,
    public class TestWidget : AppWidgetProvider
        public override void OnUpdate(Context context, 
                AppWidgetManager appWidgetManager, int[] appWidgetIds)
            base.OnUpdate(context, appWidgetManager, appWidgetIds);

This will magically generate the appropriate AndroidManifest.xml for you.

Doubly good, I can now long-hold on the desktop (?), click Widgets, and see
useless Test Widget.  From the initial description, it sounds like this was
causing Settings to crash; that is no longer the case.

Unfortunately, in the emulator 'adb logcat' I do see the message:

E/ActivityManager(   60): ANR in widgettest1.widgettest1
E/ActivityManager(   60): Reason: Broadcast of Intent {
cmp=widgettest1.widgettest1/widgettest1.TestWidget }

but after that I DO see "Loading..." in the background, so it does appear to

Running on an N1, I don't see the ANR message, and I also see "Loading...", so
I believe this is working properly now.

Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

More information about the mono-bugs mailing list