ok
remove
opts.inScaled = false
and add
opts.inDensity = 240
opts.inTargetDensity = 240
pskink wrote:ok
remove
opts.inScaled = false
and add
opts.inDensity = 240
opts.inTargetDensity = 240

sblantipodi wrote:pskink wrote:ok
remove
opts.inScaled = false
and add
opts.inDensity = 240
opts.inTargetDensity = 240
you are a friend, thanks for your help dear pskink.
Can you explain me why it works well in this way please?
opts.inScaled = false; would be more convenient because
in this way I will have to manage all the density...

pskink wrote:
well, to be honest, i dont know, i just made "try & error" scheme
basically its rather rare situation to have image not scaled since with bigger density and the same physical screen size your image will be physically smaller - do you really want this?
but if you really do want that behavior its easy to obtain density from some class - is it DisplayMetrics or something...

sblantipodi wrote:Yes I want this because the android auto-scaling is really bad, image scaled looks terrible,
I prefer to use two separate images than a scaled one.
and the image will be drawn without scaling on both Level3 and Level4 with the same .apk.
Really thanks pskink. Really thanks.

pskink wrote:i still don't know how do you want to get 800x480 with lvl3
i think that all you can get on WVGA in lvl3 is 480x320

sblantipodi wrote:pskink wrote:i still don't know how do you want to get 800x480 with lvl3
i think that all you can get on WVGA in lvl3 is 480x320
That class is born to display an unscaled image of "230 pixel, or smaller or bigger" in width,
in an unscaled way on Level 3 or higher.

pskink wrote:
i mean if you want to use different densities/screen sizes you need lvl4 and screens-supports tag
if you use screens-supports you cannot run your app in device with lvl3

sblantipodi wrote:
the
<supports-screens>
tag is simply ignored on level3 phone, so I can add this XML attribute also on Level3.

pskink wrote:did you check it?
what about api that is introduced in lvl4?
is it also ignored?
i don't think so...

pskink wrote:ok
what is your target in your default.properties (file in the top of your eclipse project)
target=android-X

pskink wrote:ok, but even using netbeans you have to specify which android version you build your project against?
what version is it?

Return to SDK/ADT/Emulator Problems
Users browsing this forum: No registered users and 36 guests