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 ?
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.
Related
It seems that it isn't possible to create a PhoneGap app for Android 2.x. Is that right?
For running android applications using phonegap build your application as Android 4.0.3 and set the minimum version to the lower version whatever you want. Basically Android 4.0.3 build does not affect the functionalities of the older android version. And this app perfectly works with android lower versions.
I usually do like this in manifest.xml
<uses-sdk android:minSdkVersion="7" android:targetSdkVersion="15"/>
Okay - so answering my own question. You need Android API mark 15 installed for PhoneGap to work.
But . . . you can change the AndroidManifest.xml file in the application to make it backwards compatible.
For example
<uses-sdk android:minSdkVersion="10" />
will be compatible with 2.3.3
I want to make application that support 2.1 or higher platforms. Does anyone have solution for it?
Can I use somekind of cross-platform for it or cross-platefroms are only for porting applications from differnt OS? Or there is any library i can use for this purpose?
Any application built with Android 2.1 API will work later versions of Android (theoretically). In the AndroidManifest.xml file, set the target SDK version to 2.1, and the 2.1 API will be loaded by Eclipse for the application. Done. It's still recommended to test it on later versions in case there's some slight variations that aren't documented, but most if not all things should work.
Just code your application and in your AndroidManifest put this somewhere <uses-sdk android:minSdkVersion="7" />.
That corresponds to Android 2.1, more details here http://developer.android.com/guide/appendix/api-levels.html
Is it possible to run android 3.1 application to run in android 2.1 device? I heard that there is a compatibility in android. And I used API level 3.1 in my application.
There are two things: the compatibility mode: http://developer.android.com/guide/practices/screen-compat-mode.html and the compatibility libraries: http://developer.android.com/sdk/compatibility-library.html
The compatibility mode takes care of adjusting the screen to fit the device on post-3.0 devices even if the app has not been tailored for the specific screen. The compatibility library ports some of the Honeycomb features back all the way till Android 1.6.
Besides these, standard backward compatibility concepts apply.
yes you can do this . Use the min sdk version in your manifest file to API level 2.1.
Add the following line in your AndroidManifest.xml file
<uses-sdk android:minSdkVersion="7" />
this will allow your app to run in any device with api level 2.1 or higher.
I am new in android, Please help me ....
I build an application in android 2.2platform but when i test it on an emulator of version 2.3.3 and higher it is not working .
Is there any problem of emulators or I have to build the same application with the 2.3.3 platform .....???
Make sure that your AndroidManifest.xml has a line like the following:
<uses-sdk android:minSdkVersion="8"
android:targetSdkVersion="8"
android:maxSdkVersion="10" />
This says, essentially, "I would like to target 2.2 devices, but the application should run on any devices up to 2.3.4."
You can get more information about uses-sdk at http://developer.android.com/guide/topics/manifest/uses-sdk-element.html
Please check your Manifest file in that is there any code like ? If yes then remove that line and then test it or set that at which level you want to run your application.
I currently have an app which is set to support Android 2.2 and have the Android Manifest file the line of code to enable the app to be installed on to the SD Card. I want to be able to make the App also support Android 2.1 and above. Is there a way I can do this or do I need to have two separate apps. One for Android 2.1 and another for 2.2 and above.
Thanks for your help
No.
Simply in the Manifest editor add the uses-sdk in "Manifest extras" and set only the minSdkVersion attribute to an API version of your choice. Don't set the Targetsdkversion.
This works for my apps.
I set:
android:installLocation="auto"
and
<uses-sdk android:minSdkVersion="7"/>
You can find all this information on the Android dev guide