[android-developers] Re: Persistant Variables

2009-04-13 Thread MrChaz
Take at look at on onSaveInstanceState() You can use that to save things into the bundle that is passed to onCreate() On Apr 13, 7:26 pm, Kirk kirk.mora...@gmail.com wrote: I have an activity that responds to the accelerometer. When the device is rotated, a different layout is displayed based

[android-developers] Re: Persistant Variables

2009-04-13 Thread Kirk - Actual Metrics
Thanks that works great. I feel kind of stupid for not figuring that out on my own now. I do think it's silly for onCreate to be called again on rotate; there should be an onOrientationChange event or something. Kirk On Apr 13, 11:31 am, MrChaz mrchazmob...@googlemail.com wrote: Take at look

[android-developers] Re: Persistant Variables

2009-04-13 Thread MrChaz
I think that there is a permission for saying that you will handle it and another event that you can hook. But I've not explored those :) On Apr 13, 8:49 pm, Kirk - Actual Metrics kirk.mora...@gmail.com wrote: Thanks that works great. I feel kind of stupid for not figuring that out on my own

[android-developers] Re: Persistant Variables

2009-04-13 Thread Dianne Hackborn
The docs explain why it works the way it does. On Mon, Apr 13, 2009 at 12:49 PM, Kirk - Actual Metrics kirk.mora...@gmail.com wrote: Thanks that works great. I feel kind of stupid for not figuring that out on my own now. I do think it's silly for onCreate to be called again on rotate;