On Fri, Apr 16, 2010 at 2:00 PM, sandscorpio <[email protected]>wrote:

> 1. By specifying v4 in drawable-hdpi-v4, the icon will not be
> displayed to 1.5 or below OS's. But what about users with 2.0 or
> higher SDK's? Will they get the non-hdpi icon, since they will have v6
> or v7 ?
>

Yes they will get them.  This specifies the minimum platform version the
resource is for.  (Note prior to 2.0 there was a bug where it was an exact
match, but that was fixed so you can count on -v4 and above working
correctly.)


> 2. The documentation for targetSdkVersion states, "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)". Does this mean
> that my app will not be forward compatible as soon as I specify a
> targetSdkVersion? What exactly is being turned off?
>

It turns off the compatibility code for older applications that were not
written with 1.6 and later features in mind.  If you have tested against the
targetSdkVersion you have told the system you support, you will be fine.


> 3. Even if I leave out the targetSdkVersion="4", the app runs ok. So
> do I really need it?
>

You do if you want the system to run your app as well as possible on SDK 4
or later.


> 4. Should I be using the latest SDK (2.1) and setting that as the
> targetsdkversion and compiling against that? Or some other combination
> of targetsdkversion and compiling sdk? I'm not using any API's that
> are not in 1.5..
>

You can do that if you want.  It is up to you.  If you aren't using newer
APIs, it is not required.


> 5. Is any of this related to why some of my HTC Eris users have
> complained that they can no longer find my app in Market after
> upgrading to 2.1?
>

targetSdkVersion should not impact that.

-- 
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

Reply via email to