How to enable hardware acceleration on ICS, but disable it in Gingerbread?

I want my application to speed up in ICS, but 2.3.3 support is still needed. Can I enable HW acceleration for ICS only? Or can I only refuse support 2.3.3?

+2
source share
3 answers

Hardware acceleration was not added until 3.0. It's not a problem.

ref: http://developer.android.com/guide/topics/graphics/hardware-accel.html

+4
source

on ICS (android 4+), GPU acceleration is enabled by default and can be disabled in the manifest.

, ( android 2.3.x), , .

(android 3.x), , .

+3

- .

, ICS, , , .

, hw. , , .

, . , .

, , , - ICS, . , , , .

, / .

hw .

if (android.os.Build.VERSION.SDK_INT>=11) {
   getWindow().setFlags(
        WindowManager.LayoutParams.FLAG_HARDWARE_ACCELERATED,
        WindowManager.LayoutParams.FLAG_HARDWARE_ACCELERATED);
}

, , .

: , .

+3

Source: https://habr.com/ru/post/1548010/


All Articles