Click here to Skip to main content
15,880,427 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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?
Posted
Updated 26-Sep-14 0:30am
v2

1 solution

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:
XML
    <uses-sdk>
        android:minSdkVersion="10"
        android:targetSdkVersion="19" />
</uses-sdk>
 
Share this answer
 
Comments
Member 11111619 26-Sep-14 6:53am    
I added this in my code.But Can i generate different apk for different versions?
Like can i check if(my version ==Gingerbread)then which code i can write? and also supporting styles

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900