It returns an object.  It can be anything you want, including an object
holding other objects.

HOWEVER!

This is *only* an optimization.  You should never use this to retain data
that you can't otherwise recover through a normal onCreate() from instance
state (state on disk).  Otherwise you will lose the user's data when your
app is in the background and gets killed, and other situations.

On Wed, Jan 26, 2011 at 5:27 PM, som <[email protected]>wrote:

> Hi Guys,
>
> I have developed a Paint application on Android. I have reached a
> stumbling block now.. I want to retain all the graphical shapes drawn
> on the canvass when i switch from portrait to landscape... which means
> onretainnonconfigurationinstance should return an array of objects.
> does the API support it? how can i do this?
>
> thanks in advance...
>
> Som
>
> --
> 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
>



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

Reply via email to