Tuesday, September 13, 2011

[android-developers] Re: Enable android:hardwareAccelerated, but build against a target earlier than 3.0

This approach doesn't allow me to build against Android 2.1, though,
as adding android:hardwareAccelerated requires me to build against
android 3.0. I want to build against my min target sdk in order to
make sure no developers on my team (myself included) accidentally
refer to an API that isn't available in my min target sdk.

On Sep 12, 12:55 pm, David Turner <di...@android.com> wrote:
> That's the point of this attribute, just add android:hardwareAccelerated to
> your manifest.
>
> On platforms < 3.0, it will be ignored, on platforms >= 3.0, it will tell
> the system to use the hardware-accelerated canvas implementation (that
> provides the same API than the software based one).
>
> Just ensure that you test your application on a 3.0+ device, the
> hardware-accelerated canvas implementation doesn't support all the features
> of the software one.
>
>
>
>
>
>
>
> On Mon, Sep 12, 2011 at 9:21 PM, Tom <thomas.j.benn...@gmail.com> wrote:
> > I want to enable hardware acceleration for my android app, but I still
> > want to build against Android 2.1 (in order to make sure I don't
> > accidentally rely on APIs introduced in 3.0, for example). Is there
> > anyway to turn on a feature and still build against a version before
> > it was introduced? I know I can use reflection in code to check for
> > say, an API added after my build target, but I'm not sure if I can do
> > something similar for android:hardwareAccelerated.
>
> > --
> > 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+unsubscribe@googlegroups.com
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en

--
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment