If you don't specify <supports-screens> or minSdk, then your app will
run in compatibility mode, meaning that it's given an HVGA (240x320)
"virtual screen", which is then scaled as a whole. So your images will
be scaled.
If you specify minSdk >= 4, or <supports-screens>, then scaling should
work as expected.
Except one case - if you're running on 1.5.
Since 1.5 didn't have support for multiple resolutions, it doesn't
understand alternative resource qualifiers and might occasionally grab
the wrong image. To prevent this, add "-v4" at the end of your qualified
resource directory names, e.g. "drawable-hdpi-v4", "drawable-ldpi-v4".
This makes those directories invisible to 1.5.
-- Kostya
22.10.2010 20:20, Stephen Jungels пишет:
In addition to what was said above, if you study the
<supports-screens> directive carefully and set it properly in your
manifest, that will most likely clear things up.
On Fri, Oct 22, 2010 at 11:43 AM, TreKing<[email protected]> wrote:
On Mon, Oct 18, 2010 at 3:35 PM, Wri<[email protected]> wrote:
In the old project, I did not specify a target SDK (the manifest did not
contain something like:<uses-sdk android:minSdkVersion="8" />).
Be careful here ... "target SDK" is NOT the same as "minSDK". Was that a
typo or are you not clear on this?
The new project now uses<uses-sdk android:minSdkVersion="8" /> in the
manifest.
So you're app is designed to work ONLY on 2.2 (SDK 8) or is that what your
"target" (what you're testing on) is?
Why is this happening? How can I load them without scaling while still
declaring the minimum SDK?
This I don't know - I haven't had to deal with all this screen support stuff
as the defaults work out fine for me for now, but I would double check you
really want min SDK to 8 and read over this:
http://developer.android.com/guide/practices/screens_support.html
-------------------------------------------------------------------------------------------------
TreKing - Chicago transit tracking app for Android-powered devices
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--
Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en