[android-developers] Re: How to disable orientation changing?
Rather than outright disabling it, Android allows you to declare that
your application handles it. You can then do nothing -- if that really
is the right thing to do.
So in AndroidManifext.xml, add as a child of the appropriate <activity
element, 'android:configChanges="orientation"'.
However, you really should define your own
Activity.onConfigurationChanged() method, even if for now you do
nothing but return. After all: changing orientation usually means you
want to use different Layouts, too, so you will want to handle that in
onConfigurationChanged().
On May 23, 3:14 am, herfleisch <herflei...@gmail.com> wrote:
> Hi all.
>
> I have an online game for mobile browsers, but i don't know how to
> disable orientation changing by JavaScript or HTML. Can i do it?
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home