Not really. I meanwhile just stopped feeling that I was doing it wrong ;-)
It's probably meant to be used this way.

I now display my widget in an invalid state first and then configure it
afterwards.

On Sun, May 30, 2010 at 9:35 AM, Yuvi <[email protected]> wrote:

> 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 <[email protected]>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 [email protected]
>> To unsubscribe from this group, send email to
>> [email protected]<android-developers%[email protected]>
>> 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 [email protected]
> To unsubscribe from this group, send email to
> [email protected]<android-developers%[email protected]>
> 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 [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