Hey,

have you solved this "problem"? I am facing right now the exact same thing
(that onEnabled() is called when the Configuration utility is launched, and
not when the actual widget is placed on the home screen).


Thanks!
Yuvi

-- 
YuviDroid
http://android.yuvalsharon.net

On Sat, Feb 27, 2010 at 7:51 PM, Mariano Kamp <mariano.k...@gmail.com>wrote:

> Hey guys,
>
>   I am bit puzzled by an app widget's lifecyle.
>
>   When I create a widget my own configuration activity is launched,
> some data is entered, I store this data some place and call finish on
> my config activity like this:
>
> Intent resultValue = new Intent();
> resultValue.putExtra(AppWidgetManager.EXTRA_APPWIDGET_ID, appWidgetId);
> setResult(RESULT_OK, resultValue);
> finish();
>
> Now I would expect to see something like that in my log:
>
> I/System.out(  312):
> onReceive...=android.appwidget.action.APPWIDGET_ENABLED
> I/System.out(  312): onReceive...=android.appwidget.action.APPWIDGET_UPDATE
>
> But as a matter of fact those log entries from above are created when
> the configuration activity is *started*. Is that right? Am I doing
> something wrong here?
> Should I invent some artificial limbo/default state for the widget
> that can be displayed when it is in its configuration mode?
>
> Cheers,
> Mariano
>
> --
> 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<android-developers%2bunsubscr...@googlegroups.com>
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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