I am writing a game for Android and I have a problem with auto scaling of the bitmap.
My phone is a Motorola Droid and it works great on it. When I run AVD with the same resolution for my phone running 2.2, it works fine, and if I run AVD with a smaller screen (320x240) and AndroidOS 1.6, it scales the bitmaps correctly and it looks just fine.
But when I run it on AVD version 3.0 and the big screen (emulating a tablet), the bitmap images do not scale at all. My code finds a location where to draw everything based on the height of the screen, so everything is drawn in the right place, just without scaling the bitmap.
The problem is that if I write code to scale bitmaps based on the height of the screen, then when I run it on AVD using a small screen, it ends up tiny, because it becomes TWICE reduced - once my own code and one times using the autoscale code.
Any help?
source
share