46 reputation
115
bio website
location
age
visits member for 2 years, 6 months
seen Oct 7 '12 at 18:49

Sep
19
awarded  Famous Question
Dec
7
awarded  Notable Question
Sep
18
awarded  Popular Question
Jun
4
awarded  Scholar
Jun
4
comment Fitting Android game to different screen sizes
Never mind, I ad set my ratios to be integers, not doubles. It worked!! Thank you so much! I LOVE YOU MORE THAN LIFE!
Jun
4
accepted Fitting Android game to different screen sizes
Jun
3
comment Fitting Android game to different screen sizes
In my activity I used this.getDisplayMetrics() instead of get resources().getDisplayMetrics(). Could this be the problem? When I log the display metric width divided by 480(my desired width), I get (same thing for the height). I know that the screen width and height are far more than 480, and this is strange.
Jun
3
comment Fitting Android game to different screen sizes
Thanks! One more question; How would I get the screen width and height? When I try using DisplayMetrics, my width and height ratios both end up being 1, and I am really confused.
Jun
2
awarded  Supporter
Jun
2
comment Fitting Android game to different screen sizes
Thank you so much! you r a genius. Could you also please add an explanation for how to scale the bitmaps accordingly?
Jun
2
comment Fitting Android game to different screen sizes
No, I am not using a game engine. I do have my layout in xml, and in my xml file I have a SurfaceHolder.Callback that is the entire screen. The width and height of the holder change from screen to screen. I think that my problem is that I am drawing the bitmaps with X and Y coordinates, but the scale of the bitmaps stays the same from screen to screen. Is there any way to fix this? Thanks a lot in advance!
May
30
awarded  Editor
May
30
revised Fitting Android game to different screen sizes
added 35 characters in body
May
30
comment Fitting Android game to different screen sizes
Yes, I think I should say this: When I run it on my tablet, even though the screen size is bigger, all of the bitmaps are the same size. Is there any way to make the bitmaps stay the same proportion even on different size screens?
May
29
comment Fitting Android game to different screen sizes
My game uses a game panel that extends SurfaceHolder.Callback (It's in an XML file that is called by an Activity). Could this be part of the problem?
May
28
awarded  Student
May
28
asked Fitting Android game to different screen sizes