Supporting multiple screens

Problems with Canvas, OpenGL, etc...

Supporting multiple screens

Postby Sheeft » Fri Apr 27, 2012 6:00 pm

Hi there !

I know my topic title corresponds to an article of the official doc but I didn't find out the answer to my question so please let me ask you.

Actually I made a game for Android aiming a format of 1024*600 (I was aiming the BlackBerry PlayBook) but I tested it on my Galaxy Nexus and of course it doesn't display the way I want.

It seems that making the -mdpi -hdpi folders is not enough for supporting multiple screens (I get why I'm not complaining about that, it's logic).
The thing is that I'd like to know how to support different screen formats when not using any layout (since I'm making a game it didn't seem appropriate).

I display images in a SurfaceView with Canvas.drawBitmap. How can I get my game to run the game the same on every device ? (I don't get how it is possible since even the ration on different screens is not the same…).

Can you give some clue ?

Thanks !
Sheeft
Once Poster
Once Poster
 
Posts: 1
Joined: Fri Apr 27, 2012 5:52 pm

Top

Return to Android 2D/3D Graphics - OpenGL Problems

Who is online

Users browsing this forum: No registered users and 4 guests