Got it.  I don't think I need targetSdkVersion now that I have:

        <supports-screens android:smallScreens="false"
android:normalScreens="true" android:largeScreens="true" />

I want to target HVGA and up.

On Jan 5, 8:10 pm, Lance Nanek <[email protected]> wrote:
> 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_suppo...
>
> On Jan 5, 9:15 pm, Matt Kanninen <[email protected]> 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 [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

Reply via email to