weakwire
weakwire

Reputation: 9300

Disabling android hardware acceleration Runtime

I want to have my application hardware accelerated for some devices but not for all. Mainly handsets running ICS. I know i can disable each view individually but i want to avoid that. So how can i disable Hardware Acceleration at runtime?

I want to do the opposite of that

getWindow().setFlags(
    WindowManager.LayoutParams.FLAG_HARDWARE_ACCELERATED,
    WindowManager.LayoutParams.FLAG_HARDWARE_ACCELERATED);

disabling it at window level.Not view level.

Edit I did the opposite. I disabled HA at manifest and enable it at window level when needed. But the Q still stands

Upvotes: 4

Views: 2146

Answers (1)

foofaa
foofaa

Reputation: 2435

This Android blog article is a year old now (March, 2011), but it states: "Note that you currently cannot disable hardware acceleration at the window level."

Much of the article still seems valid - I'm currently chasing down a bug specific to the Galaxy Nexus that appears to stem from hardware acceleration and path clipping...

Upvotes: 2

Related Questions