You are using this wrong.  Both attributes need to be in a single <uses-sdk>
tag.

The rule is simple: if the targetSdkVersion is Honeycomb, then you get the
new Honeycomb behavior.  (Note this is the exact same way this has worked
forever, as documented by android.os.Build.VERSION_CODES about the changes
in behavior you get as you target later platform versions.)

This SDK is a preview, without final APIs, so its SDK version is a codename
since code you write with it is by definition not tested on final builds.
 Once the final SDK is available, that will have an actual API version
number for Honeycomb.

On Mon, Feb 7, 2011 at 12:11 AM, blindfold <[email protected]>wrote:

> Yes I hope they will fix that for the final Honeycomb SDK, because
> currently I need to recompile for either
>
>    <uses-sdk android:minSdkVersion="4"/>
>    <uses-sdk android:targetSdkVersion="Honeycomb"/>
>
> giving me the conventional (Android 2.3-) phone appearance in the
> Honeycomb emulator, or
>
>    <uses-sdk android:minSdkVersion="Honeycomb"/>
>    <uses-sdk android:targetSdkVersion="Honeycomb"/>
>
> for the holographic appearance in the Honeycomb emulator. What I want
> of course is to have one APK that is backward compatible to (in my
> case) minSdkVersion="4" and that shows the holographic UI on tablets
> or phones that run Honeycomb. I do not need to change anything in my
> code but these manifest changes to get there, so it is very
> inconvenient to forbid <uses-sdk android:minSdkVersion="4"/><uses-sdk
> android:targetSdkVersion="Honeycomb"/> when aiming to get the
> holographic appearance on Honeycomb  devices and the conventional
> Android 2.3- UI on non-Honeycomb  devices.
>
> On Feb 7, 8:54 am, Marcin Orlowski <[email protected]> wrote:
> > On 7 February 2011 00:57, midtoad <[email protected]> wrote:
> >
> > > You will then get the Honeycomb Holograph them and your app will have
> > > an updated look and feel.
> >
> > http://developer.android.com/sdk/preview/index.html
> >
> > "Android 3.0 offers an updated set of UI widgets that are redesigned
> > for use on larger screens such as tablets and incorporate the new
> > holographic theme. Your existing application can inherit the new
> > design simply by setting the <uses-sdk> element's
> > android:targetSdkVersion attribute to "Honeycomb".
> >
> > If you do not update the android:targetSdkVersion attribute and the
> > android:minSdkVersion is set to "9" or lower, then your application
> > uses the widget designs from Android 2.3 and does not inherit the
> > holographic theme."
>
> --
> 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
>



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