I am working on an Android application where I would like to enable the largeHeap and hardwareAccelerated flags. However, it should also support Android 2.3.
My AndroidManifest.xml is as follows:
<uses-sdk android:minSdkVersion="10" android:targetSdkVersion="10"/> <application android:icon="@drawable/icon" android:label="@string/app_name" android:hardwareAccelerated="true" android:largeHeap="true" >
However, Eclipse refuses to build the project, saying:
error: No resource identifier found for attribute 'hardwareAccelerated' in package 'android' error: No resource identifier found for attribute 'largeHeap' in package 'android'
Raising targetSdkVersion to 11
, where such flags were introduced, does not solve the problem.
Is it possible to support Android 2.3 and set these flags?
user79758
source share