如何通过支持多个Apis来创建Android应用程序 [英] How Do I Create An Android Application By Supporting Multtiple Apis

查看:68
本文介绍了如何通过支持多个Apis来创建Android应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

提前谢谢你!



我有一个Android应用程序。我正在创建这个应用程序,以支持不同的版本,如冰姜饼和高于姜饼。 />


那么如何编写代码来支持不同的版本?

解决方案

你设置你的最小和最大版本在eclipse或Android Studio中支持项目创建过程。或者,您可以调整AndroidManifest.xml文件的 uses-sdk 部分中的值:

 < span class =code-keyword><   uses-sdk  >  
android:minSdkVersion =10
android:targetSdkVersion =19/>
< / uses-sdk >


Thank You in Advance!

I have an android application.And i am creating this app to support different versions like ice Gingerbread and higher than Gingerbread.

So how to write code to support different versions?

解决方案

You set the minimum and maximum versions that you support in the project creation process, in eclipse or Android Studio. Alternatively you can adjust the values in the uses-sdk section of the AndroidManifest.xml file thus:

    <uses-sdk>
        android:minSdkVersion="10"
        android:targetSdkVersion="19" />
</uses-sdk>


这篇关于如何通过支持多个Apis来创建Android应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆