[android-developers] Re: Screen Orientation change performance Question

2009-03-10 Thread TjerkW
I do not want my view to rotate when the user opens the keyboard or rotates the device (i make a game). How do i disable this? In the emulator it always rotates by hiting CTRL-F11 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Goo

[android-developers] Re: Screen Orientation change performance Question

2009-03-10 Thread Mark Murphy
TjerkW wrote: > I do not want my view to rotate when the user opens the keyboard or > rotates the device (i make a game). > How do i disable this? > In the emulator it always rotates by hiting CTRL-F11 Use android:screenOrientation=”portrait” as described here: http://androidguys.com/?p=2891 --

[android-developers] Re: Screen Orientation change performance Question

2009-01-21 Thread Romain Guy
Hi, You can forward them to the next activity using Activity.onRetainNonConfigurationInstance(). You can also keep static references to the drawables if you remove their callbacks in onDestroy(). You can look at Home's source code for an example of the latter or at the source code of Photostream

[android-developers] Re: Screen Orientation change performance Question

2009-01-22 Thread blindfold
According to DDMS, my app leaks about 30 KB every time I quit and restart it. It may well be that this is caused by context references, but so far I have been unable to track it down. I think we desperately need some tool or a straightforward method to know exactly *what* is leaking *where* from r

[android-developers] Re: Screen Orientation change performance Question

2009-01-22 Thread cindy
My application also crashes somtimes when screen oritention change. I don't have big image at all. Do I need to some special code to handle screen orientation change? On Jan 22, 1:07 am, blindfold wrote: > According to DDMS, my app leaks about 30 KB every time I quit and > restart it. It may wel

[android-developers] Re: Screen Orientation change performance Question

2009-01-22 Thread Mark Murphy
cindy wrote: > My application also crashes somtimes when screen oritention change. I > don't have big image at all. > Do I need to some special code to handle screen orientation change? Possibly. By default, your activity is destroyed and recreated when the screen orientation changes. In theory,

[android-developers] Re: Screen Orientation change performance Question

2009-01-23 Thread android_soft
I add the following attribute to an activity tag in the manifest to handle orientation changes. You may want to check other events you want to handle. android:configChanges="orientation" --~--~-~--~~~---~--~~ You received this message because you are subscribed to