API demos is hardware accelerated.  Try putting the call in one of the
simple samples there and see what it does.

Fwiw, if you are using the default dark theme, if your window is hardware
accelerated than you will get the patterned blue background.  If it is
drawing in software you will get the solid black background.

On Mon, Apr 4, 2011 at 10:53 AM, Shai <levys...@gmail.com> wrote:

> Hi,
>
> I am trying to turn on hardware acceleration for my HoneyComb application
> but I never seem to get a 'true' result from this function.
>
> I tried all the methods in the Android Developers blog post about the
> subject (
> http://android-developers.blogspot.com/2011/03/android-30-hardware-acceleration.html
> ).
>
> I am working on a completely blank project (ADT generated project), I added
> the  tag  android:hardwareAccelerated="true"  to both the application and
> activity and even called
>         getWindow().setFlags(
>                 WindowManager.LayoutParams.FLAG_HARDWARE_ACCELERATED,
>                 WindowManager.LayoutParams.FLAG_HARDWARE_ACCELERATED);
>
> before calling setContentView()
>
> My view only has the TextView that was automatically generated from the ADT
> new project wizard.
>
> Yet, no matter what I do, when I call isHardwareAccelerated() on the
> textview or the root view or any canvas I try to obtain - the function
> isHardwareAccelerated() of the view/canvas always returns false.
>
> I am testing on a Motorola Xoom device with Android 3.0.1
>
> What am I missing here ?
>
> Best Regards,
> Shai
>
>
>  --
> 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




-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

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