Reputation: 159
I'm building an 2.2 and up version application.
This gives me some problems using a webView,
mainly because Flash won't work on a 3.1 device.
I have looked into this and the solution states that i should add :
android:hardwareAccelerated
in the Manifest. or
getWindow().setFlags( WindowManager.LayoutParams.FLAG_HARDWARE_ACCELERATED,
WindowManager.LayoutParams.FLAG_HARDWARE_ACCELERATED);
in the code
however, since I am using android 2.2 to create the App, this is not possible. Would the only way to get this working be to create in 3.0 ?
Upvotes: 3
Views: 2241
Reputation: 13242
I think you should be able to do something like this in your manifest file:
<uses-sdk android:minSdkVersion="8" android:targetSdkVersion="11" />
That'll set the application target to Android 3.0, so you can use the hardware acceleration tag in the manifest file, but allow the application to be installed on Android 2.2+.
Just make sure that you're only using API's available in Android 2.2.
Upvotes: 6