supports-screen with 1.5 target, can't make app non-scaling
I'm a bit lost right now, what I'm trying to do: build a 1.5 compatible app that should also run on 2.0/2.1 devices like the Nexus. The problem is that supports-screen doesn't work the way it's supposed to with 1.5 target set in eclipse.
Did I miss something? Basically, I just want my app not to scale anything, I'll handle that ( anyScale = true )
Thanks in a开发者_如何转开发dvance!
As you've noted the <support-screens>
element of <manifest>
was indroduced at API Level 4, which is Android 1.6, and this means it doesn't work for an Android 1.5 application.
However, you can get this to work for an application that does run on 1.5.
If you specify targetSdkVersion
as well as minSdkVersion
your application will start to work correctly on all platforms.
So have an entry in your manifest like this:
<uses-sdk android:minSdkVersion="3" android:targetSdkVersion="4"/>
This is covered in the Android API Levels page in the Android Developer documentation.
精彩评论