Trying to help by digging up the code.
I found this:
http://www.google.com/codesearch/p?hl=en&sa=N&cd=1&ct=rc#uX1GffpyOZk/include/utils/ResourceTypes.h&q=ResTable_config&l=787
// Return true if 'this' can be considered a match for the
parameters in
// 'settings'.
// Note this is asymetric. A default piece of data will match
every request
// but a request for the default should not match odd specifics
// (ie, request with no mcc should not match a particular mcc's
data)
// settings is the requested settings
inline bool match(const ResTable_config& settings) const {
...
if (version != 0) {
if (settings.sdkVersion != 0 && sdkVersion != 0
&& sdkVersion != settings.sdkVersion) {
return false;
}
if (settings.minorVersion != 0 && minorVersion != 0
&& minorVersion != settings.minorVersion) {
return false;
}
}
return true;
}
Of course I am not sure where this is used, but I only see an != here.
Hopefully, this is not the right code. Or perhaps there is new code in
Eclair that is not available yet, that makes this better.
Thanks for the help.
Artem
On Oct 29, 9:12 pm, Artem Petakov <[email protected]> wrote:
> Dianne, I am sorry to say it also does not work for me. Actually, we had
> made a mistake and originally forgot the v4, which screwed up Cupcake, but
> now we added the v4 (and make no other changes), and it stopped working.
>
> Am I missing something? Or is there perhaps a serious problem? Please reply
> back so we can take action -- we need to publish a new APK for the Cupcake
> users, but we can't figure out how to do that without breaking Eclair.
>
> Artem
>
>
>
> On Thu, Oct 29, 2009 at 11:00 AM, webmonkey <[email protected]> wrote:
>
> > Hi Dianne,
>
> > The v flag does indeed not work, I am using the Android 2.0 SDK with
> > the following AndroidManifest settings:
>
> > <uses-sdk
> > android:minSdkVersion="3"
> > android:targetSdkVersion="5"
> > />
>
> > Running on a WVGA854 emulator with density 240 and API 5, I get the
> > following results:
>
> > drawable-hdpi-v4
>
> > is ignored
>
> > drawable-hdpi-v5
>
> > is ignored, very strange
>
> > drawable-hdpi
>
> > works, but we can't use that
>
> > On Oct 29, 3:45 pm, Dianne Hackborn <[email protected]> wrote:
> > > I am pretty positive it works. Nothing changed in 2.0 -- this has been
> > the
> > > same since 1.0, if the platform's SDK version is < the resource version,
> > > then the resource is ignored.
>
> > > On Wed, Oct 28, 2009 at 5:28 PM, Jeff <[email protected]> wrote:
>
> > > > Looks like -v4 flag doesn't work in Android 2.0. Any ideas?
>
> > > > On Oct 22, 8:38 am, Nikolay Ananiev <[email protected]> wrote:
> > > > > This is how I made my app resolution-independent and with Android 1.5
> > > > legacy
> > > > > support:
>
> > > > > Why did I put my high-dpi images in the drawable-hdpi-v4 folder and
> > not
> > > > in
> > > > > drawable-hdpi? Because the Android 1.5 OS can't handle the -hdpi and
> > > > tries
> > > > > to use these images instead of the ones in the res/drawable folder.
> > The
> > > > -v4
> > > > > flag is only meaningful for Android 1.6 and works perfect.
>
> > > --
> > > Dianne Hackborn
> > > Android framework engineer
> > > [email protected]
>
> > > Note: please don't send private questions to me, as I don't have time to
> > > provide private support, and so won't reply to such e-mails. All such
> > > questions should be posted on public forums, where I and others can see
> > and
> > > answer them.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---