Jump to content

Playing fullscreen on an Android device


Shockblast Apps
 Share

Recommended Posts

Hey guys,

 

Do you guys happen to know how to get a HTML5 game to work fullscreen on an Android device??

My game is 320x480 and my phone is 480x800, so the game only takes a portion of my screen...

 

I got it working on the iphone, but I can't find any information on how to do it on Android. Oh btw on the regular iphone and the iphone 4(retina), the safari toolbar on the bottom is overlapping with a piece of the gamescreen. I noticed this also with TrueValhalla's games, are there any workarounds for that??

 

Thanks!

Link to comment
Share on other sites

The latest version of Chrome on Android supports the FullScreen API - so you can go proper fullscreen. Failing that you need to use the window.setTo hack to try and scroll browser UI out of the way. Sometimes this works, sometimes it doesn't.

 

On iOS5 you can't get rid of the bottom Safari bar. At all. On iOS6 the user can get rid of it, but in landscape mode only. In iOS7 they can't even do that :(

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...