0

I'm writing a real-time Android game, so I need to be able to handle different aspect ratios and resolutions correctly.

For now, I'm using my Samsung Fascinate. My phone's specifications indicate that the screen resolution is 480x800. But when I check the screen resolution in the game, it says 533x320 instead...

Why is this?

Jesse
  • 599
  • 2
  • 9
  • 23
  • Conclusion about how to get real resolution: http://stackoverflow.com/questions/11824193/htc-sensation-real-resolution – thecr0w Aug 09 '12 at 02:11

1 Answers1

1

On your Manifest add a:

    <supports-screens android:anyDensity="true" />

This behavior is discussed in detail on the documentation under the section:

"2. Auto-scaling of pixel dimensions and coordinates"

lock
  • 6,404
  • 18
  • 58
  • 76