Screen-Size Detection Problem. Ideas?

fogartyfogarty Member, PRO Posts: 181
This is a very specific problem, but I'm hoping someone else has encountered it and has ideas:

I'm using screen-size detection in the nightly build to adjust my game for all the different Android tablets and phones. I built the game at MacBook size (camera= 800 x 1280), and then have rules that detect a device's screen size and adjust the camera size and camera orientation to get the proper overscan. (Thank you, @FryingBaconStudios!)

Generally, it works great, but I'm having a problem with one Android tablet: The Asus Nexus 7 (2012 edition). The specs for that device say it is 800 x 1280 (exactly what my base game is), and I have no rules that detect that screen size, so it the game *should* just stay as it is on my computer. But instead, it's getting cropped off on the top and bottom on the tablet.

Cropping is fine on other tablets that have 800 x 1280 screen resolution, I've tested on two different Nexus 7s, and I've tripled checked that the Nexus 7 published screen resolution is really 800 x 1280. I've done Google searches to see if there's a known problem of the device misreporting it's screen resolution and haven't found anything.

My two testers swear their devices are the Nexus 7, and TestFlightApp detection confirms it--and they've had their devices too long for them to be the new 2013 edition that has a different screen resolution.

Has anyone here encountered this problem with the Nexus 7, or does anyone have ideas about what else I could investigate to try to solve it?

Thanks!

Comments

  • GoatTeaBlendGoatTeaBlend Member, PRO Posts: 22
    I am having a similar issue. The Kindle Fire is Suppose to be 1024x600, but I am getting a little cut off on the left and right sides (Landscape). I am trying to work this out. If I find the problem and solution I will update you.
  • fogartyfogarty Member, PRO Posts: 181
    I have continued to investigate this problem and finally made a discovery! Although the Nexus 7 is reporting that its screen size is 1280 x 800 pixels, it has a significant menu bar on the screen that is taking up a bunch of pixels at the bottom!

    But now that I've found the problem, I'm not sure how to solve it.

    Since I'm using the screen-size-detection method to crop my scenes, is there any way I can distinguish between devices that have 1280 x 800 available for the game versus devices that report that they're 1280 x 800, but use part of that space for their own purposes?

    I'm 99% sure there are other devices with these on-screen menu bars, so this isn't going to be an isolated problem.
  • MobileRocketGamesMobileRocketGames Member Posts: 128
    edited October 2013
    There would be no way to find out this information on the fly.
    You might want to just add in your own blank space where this menu is located. This way on screens that don't have this menu bar, there will be a little black bar at the bottom, and on screens that do, it will look proper.

    Obviously not ideal, but at least that way all screens will show 100%
Sign In or Register to comment.