Can change defaults for supports-screens. Can also disable
compatibility features, like reporting a smaller size than the actual
display and scaling your app up.

See:
http://developer.android.com/intl/zh-TW/guide/practices/screens_support.html

On Jan 5, 9:15 pm, Matt Kanninen <mathias...@gmail.com> wrote:
> What does targetSdkVersion do?
>
> There isn't much detail on what targetSdkVersion actually does.
>
> I've read:
>
> http://developer.android.com/guide/topics/manifest/uses-sdk-element.h...
>
> android:targetSdkVersion
>     An integer designating the API Level that the application is
> targetting.
>
>     With this attribute set, the application says that it is able to
> run on older versions (down to minSdkVersion), but was explicitly
> tested to work with the version specified here. Specifying this target
> version allows the platform to disable compatibility settings that are
> not required for the target version (which may otherwise be turned on
> in order to maintain forward-compatibility) or enable newer features
> that are not available to older applications. This does not mean that
> you can program different features for different versions of the
> platform—it simply informs the platform that you have tested against
> the target version and the platform should not perform any extra work
> to maintain forward-compatibility with the target version.
>
>     Introduced in: API Level 4
>
>   I'm curious because it appears that switching from:
>
>         <uses-sdk android:minSdkVersion="3" android:targetSdkVersion="4"/>
>
> to
>
>         <uses-sdk android:minSdkVersion="3"/>
>
> is the change that started the
>
> android.view.InflateException ... java.lang.OutOfMemoryError: bitmap
> size exceeds VM budget
>
> errors I was randomly seeing in setContentView.  When I remove the
> targetSdkVersion it runs much better.
>
> Now I'm having trouble remembering what adding targetSdkVersion got me
> in the first place.
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to