Hi RKJ,

Also check out the getLastNonConfigurationInstance and
onRetainNonConfigurationInstance activity methods, which can be used
to retain (non primitive) state between config changes

http://developer.android.com/reference/android/app/Activity.html#getLastNonConfigurationInstance()

http://developer.android.com/reference/android/app/Activity.html#onRetainNonConfigurationInstance()

Called by the system, as part of destroying an activity due to a
configuration change, when it is known that a new instance will
immediately be created for the new configuration. You can return any
object you like here, including the activity instance itself, which
can later be retrieved by calling getLastNonConfigurationInstance() in
the new activity instance.

Good luck!

Johan

On Nov 18, 7:45 am, Johan <[email protected]> wrote:
> Hi RKJ,
>
> When changing orientation your activity is destroyed and completely
> build up again. Any state, not persisted by yourself (in the onPause,
> or onSaveInstanceState life cycle methods) will be lost. Try putting
> some log-statements in the various life-cycle methods and see for
> yourself what is happening.
>
> A blog on this subject:http://www.devx.com/wireless/Article/40792/1954
>
> Hope this helps.
>
> Johan
>
> On Nov 18, 7:20 am, "RKJ (Android developer)" <[email protected]>
> wrote:
>
>
>
> > Hi All,
>
> > I'm taking image from  camera, and setting this image to ImageView,
> > but when i'm turning mobile to landscape, the sat image lost.
>
> > How to resolve this issue.
>
> > --Thanks in advance

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