That is an excellent news, you made my day!

Could you point me to a way to re-insert those AppWidgets into my
RelativeLayout if not using bindAppWidget?

My main problem is to get a appWidgetInfo struture to call
mAppWidgetHost.createView(this, appWidgetId, appWidgetInfo)

Richard Lalancette
Ottawa, Ontario, Canada


On Tue, Aug 16, 2011 at 11:45 PM, Dianne Hackborn <[email protected]>wrote:

> You don't need to use bindAppWidget.  The platform remembers which app
> widgets are associated with your applications between executions of the app,
> so you can continue to use them.
>
>
> On Tue, Aug 16, 2011 at 6:13 AM, Richard Lalancette <
> [email protected]> wrote:
>
>> Hi all,
>>
>> I had hope to use the AppWidget in our next solution concept, but I have
>> faced a serious problem doing so yesterday.
>>
>> Adding widgets to our app worked like a charm until I started looking into
>> saving the current widget to be able to restore them on the next launch of
>> our app.
>>
>> A large part of the app was to rely on restoring widgets upon reload, but
>> unfortunately I couldn't figure out how to do so.
>>
>> If any of you have information on saving and restoring AppWidget states, I
>> would love to hear.
>>
>> I have tried using bindAppWidgetId(appWidgetId, widget); but this is not
>> allowed by the system and returns a system exception.
>>
>> Other solutions found on the web rely on copying my app to the /system/...
>> folder, but that would mean I need to root the device and remove the
>> read-only flag from that folder which I do not wish to do.
>>
>> It would be totally not practical to re-pick all widgets each time the app
>> is launched, this is just make any sense.
>>
>> Thanks in advance
>>
>> Richard Lalancette
>> Mobile Application Developer
>> Alcatel-Lucent Canada
>> Ottawa, Ontario, Canada
>>
>> --
>> 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
>
>
>
>
> --
> Dianne Hackborn
> Android framework engineer
> [email protected]
>
> Note: please don't send private questions to me, as I don't have time to
> provide private support, and so won't reply to such e-mails.  All such
> questions should be posted on public forums, where I and others can see and
> answer them.
>
>
>  --
> 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
>

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