Hi Joey,

Use saveInstanceState()and restoreInstanceState() to save and restore
the View settings. When the screen orientation changes, Activity will
call saveInsatnceState() and can restore the saved properties in
restoreInstanceState().

Thanks

On Nov 30, 7:30 am, Joey Carson <[email protected]> wrote:
> Hello all.. This is my first time using a forum for android and I am
> relatively new to it as well.  I'll cut straight to the chase since
> this is a seemingly trivial issue that I just cannot find an answer
> to.  I have created a table layout of view objects using Java code and
> have set the onclick listener.  This works fine at first, but when the
> screen orientation is changed and I try to click one of the Views, I
> get a force close error.  I change the orientation back again and
> still get the error.  What can I do?  Thanks to all who respond.

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