开发者

android 2.2 to 1.6?

开发者 https://www.devze.com 2023-03-29 01:51 出处:网络
I have been developing an android app. I had chosen 2开发者_如何学Python.2 as the version. I have not used any advanced features that are specific to 2.2 or above. I want my app to work with 1.6 and a

I have been developing an android app. I had chosen 2开发者_如何学Python.2 as the version. I have not used any advanced features that are specific to 2.2 or above. I want my app to work with 1.6 and above. What should I do?

Thanks.


You should read this http://developer.android.com/guide/publishing/versioning.html


Complement preview answers.

android make upward compatible your code automatically as much as possible (not always).
But lowering the api level of an app. Can be a task from simple to nightmare to execute, all depends if your code use a lot of specific 2.2 ... That's means changing API level or android.jar in your project may be far to be enough.

good luck


Open the AndroidManifest.xml file and change to :

<uses-sdk android:minSdkVersion="4"/>


At first you should set android:minSdkVersion="4" in the Android Manifest file.

Next step is to do some testing on an android vm with version 1.6. Even better would be to test on a real device, but the compiler should give you enough hints what to change in your program.

0

精彩评论

暂无评论...
验证码 换一张
取 消