I doubt you can disable it via JavaScript or HTML in a standard browser.

If you write an Android native application with a WebView widget to
display your game, you can arrange to have that activity stay in one
orientation via the android:screenOrientation attribute in the
manifest.

On Mon, May 23, 2011 at 6:14 AM, herfleisch <[email protected]> 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 [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

_The Busy Coder's Guide to Android Development_ Version 3.6 Available!

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to