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
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
--
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
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
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
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,
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
7 matches
Mail list logo