[android-developers] Re: Screen Orientation Change

2009-10-10 Thread Neilz
Great, thanks! On Oct 10, 12:22 am, Mark Murphy wrote: > Neilz wrote: > > This must be simple, right? > > > On Oct 8, 11:34 pm, Neilz wrote: > >> Richard that's great, thanks. I'm almost there. One further > >> question... > > >> How can I check what the orientation of the screen is when the >

[android-developers] Re: Screen Orientation Change

2009-10-09 Thread Mark Murphy
Neilz wrote: > This must be simple, right? > > On Oct 8, 11:34 pm, Neilz wrote: >> Richard that's great, thanks. I'm almost there. One further >> question... >> >> How can I check what the orientation of the screen is when the >> Activity loads? Try getResources().getConfiguration(). -- Mark

[android-developers] Re: Screen Orientation Change

2009-10-09 Thread Neilz
This must be simple, right? On Oct 8, 11:34 pm, Neilz wrote: > Richard that's great, thanks. I'm almost there. One further > question... > > How can I check what the orientation of the screen is when the > Activity loads? > > On Oct 8, 6:27 pm, RichardC wrote: > > > Have a look at Activity.onCo

[android-developers] Re: Screen Orientation Change

2009-10-08 Thread Neilz
Richard that's great, thanks. I'm almost there. One further question... How can I check what the orientation of the screen is when the Activity loads? On Oct 8, 6:27 pm, RichardC wrote: > Have a look at Activity.onConfigurationChanged and > Activity.getChangingConfigurations > > You will need t

[android-developers] Re: Screen Orientation Change

2009-10-08 Thread RichardC
Have a look at Activity.onConfigurationChanged and Activity.getChangingConfigurations You will need to make changes to your manifest to use onConfigurationChanged -- RichardC On Oct 8, 6:03 pm, Neilz wrote: > Hi all. I notice when using the emulator that when the screen is > flipped, I get a f

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

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