0

I want disable Force GPU rendering in my android program . now i have to go setting on device and disable it , but it is hard for my user.

2 Answers2

1

I don't think that you can turn it off by adding

android:hardwareAccelerated="false"

If you trace the code into Window.setWindowManager(), you can see the following

public void setWindowManager(...) {
...
mHardwareAccelerated = hardwareAccelerated
                || SystemProperties.getBoolean(PROPERTY_HARDWARE_UI, false); 
...
}

Where,

hardwareAccelerated: comes from android:hardwareAccelerated

PROPERTY_HARDWARE_UI property is set by the "Force GPU rendering" option.

You can see that if user manually check the "Force GPU rendering" option, mHardwareAccelerated variable will be assigned with a TRUE value no matter what android:hardwareAccelerated is.

Sam Lu
  • 3,448
  • 1
  • 27
  • 39
0

Beginning in Android 3.0 (API level 11),I think you can set

android:hardwareAccelerated="false"

in the manifest file. Which will disable force gpu rendering for your application. Welcome and read the documentation..

Krishnabhadra
  • 34,169
  • 30
  • 118
  • 167