Android build doesn't get all available versions of VERSION_CODES

I am currently working on android, I am using the eclipse tool. Since I wanted to get a list of all versions of android version_Codes available for the project. but currently my / eclipse tool only shows code_ versions before Froyo. I added the minimum sdk for android for 8 and the target sdk is 17. Below is my Androidmanifest.xml and project code. I am trying to implement code.

   Java file
int FROYO = android.os.Build.VERSION_CODES.FROYO;
int JELLYBEAN = android.os.Build.VERSION_CODES.JELLY_BEAN;

 Part of Androidmanifest.xml
<?xml version="1.0" encoding="utf-8"?>
<manifest package="com.Android.Afaria" android:versionCode="50" android:sharedUserId="com.afaria.client" 
xmlns:android="http://schemas.android.com/apk/res/android" android:versionName="6.60.6172">
<uses-sdk android:minSdkVersion="8" android:targetSdkVersion="17" />

Here in the java file eclipse autosuggest does not offer version code above FROYO. enter image description here

+5
source share
3 answers

. "" > "android" "" bean .

> , .

+1

SDK , . " " SDK, : http://developer.android.com/reference/android/os/Build.VERSION_CODES.html#GINGERBREAD_MR1

:

public static final int HONEYCOMB = 11;

:

         if (Build.VERSION.SDK_INT < HONEYCOMB) {
             ...your code
         }

. , , , , - .

+1

It may be a mistake, there may be some kind of limitation. If you want to see the full list, you can see them here .

0
source

All Articles