Android

Android TutorialAdding a FuseView to an Android ProjectAndroid 9-Patch ImagesAndroid Accessing SQLite databases using the ContentValues classAndroid Accounts and AccountManagerAndroid ACRAAndroid ActivityAndroid Activity RecognitionAndroid adb (Android Debug Bridge)Android adb shellAndroid AdMobAndroid AIDLAndroid AlarmManagerAndroid Android-x86 in VirtualBoxAndroid Animated AlertDialog BoxAndroid AnimatorsAndroid Annotation ProcessorAndroid Architecture ComponentsAndroid AsyncTaskAndroid AudioManagerAndroid AudioTrackAndroid AuthenticatorAndroid AutoCompleteTextViewAndroid Autosizing TextViewsAndroid Barcode and QR code readingAndroid Bitmap CacheAndroid Bluetooth and Bluetooth LE APIAndroid Bluetooth Low EnergyAndroid Bottom SheetsAndroid BottomNavigationViewAndroid BroadcastReceiverAndroid Building Backwards Compatible AppsAndroid ButterKnifeAndroid ButtonAndroid Callback URLAndroid Camera 2 APIAndroid Camera and GalleryAndroid Canvas drawing using SurfaceViewAndroid Capturing ScreenshotsAndroid CardViewAndroid Check Data ConnectionAndroid Check Internet ConnectivityAndroid CleverTapAndroid ColorsAndroid ConstraintLayoutAndroid ConstraintSetAndroid ContentProviderAndroid ContextAndroid CoordinatorLayout and BehaviorsAndroid Count Down TimerAndroid Crash Reporting ToolsAndroid Create Singleton Class for Toast MessageAndroid Creating Custom ViewsAndroid Creating Overlay (always-on-top) WindowsAndroid Creating Splash screenAndroid Custom FontsAndroid Dagger 2Android Data Binding LibraryAndroid Data Encryption/DecryptionAndroid Data Synchronization with Sync AdapterAndroid Date and Time PickersAndroid DayNight Theme (AppCompat v23.2 / API 14+)Android Define step value (increment) for custom RangeSeekBarAndroid Design PatternsAndroid Device Display MetricsAndroid DialogAndroid Displaying Google AdsAndroid Doze ModeAndroid DrawablesAndroid EditTextAndroid Email ValidationAndroid EmulatorAndroid Enhancing Alert DialogsAndroid ExceptionsAndroid ExoPlayerAndroid FastjsonAndroid fastlaneAndroid FileProviderAndroid FirebaseAndroid Firebase App IndexingAndroid Firebase Cloud MessagingAndroid Firebase Crash ReportingAndroid Firebase Realtime DataBaseAndroid FloatingActionButtonAndroid Formatting phone numbers with pattern.Android Formatting StringsAndroid FragmentsAndroid FrescoAndroid game developmentAndroid Gesture Detection



Android Versions

From WikiOD

Remarks[edit | edit source]

Name Android version Release date API-level Build.VERSION_CODES
Angel Cake (Alpha) 1.0 23 September 2008 1 BASE
Battenberg (Beta) 1.1 9 February 2009 2 BASE_1_1
Cupcake 1.5 30 April 2009 3 CUPCAKE
Donut 1.6 15 September 2009 4 DONUT
Eclair 2.0 26 October 2009 5 ECLAIR
2.0.1 3 December 2009 6 ECLAIR_0_1
2.1 12 January 2010 7 ECLAIR_MR1
Froyo 2.2 20 May 2010 8 FROYO
Gingerbread 2.3 6 December 2010 9 GINGERBREAD
2.3.3 9 February 2011 10 GINGERBREAD_MR1
Honeycomb 3.0 22 February 2011 11 HONEYCOMB
3.1 10 May 2011 12 HONEYCOMB_MR2
3.2 15 July 2011 13 HONEYCOMB_MR1
Ice Cream Sandwich 4.0 19 October 2011 14 ICE_CREAM_SANDWICH
4.0.3 16 December 2011 15 ICE_CREAM_SANDWICH_MR1
Jelly Bean 4.1 9 July 2012 16 JELLY_BEAN
4.2 13 November 2012 17 JELLY_BEAN_MR1
4.3 24 July 2013 18 JELLY_BEAN_MR2
KitKat 4.4 31 October 2013 19 KITKAT
25 July 2014 20 KITKAT_WATCH
Lollipop 5.0 17 October 2014 21 LOLLIPOP
5.1 9 March 2015 22 LOLLIPOP_MR1
Marshmallow 6.0 5 October 2015 23 M
Nougat 7.0 22 August 2016 24 N
7.1.1 5 December 2016 25 N_MR1

Checking the Android Version on device at runtime[edit | edit source]

Build.VERSION_CODES is an enumeration of the currently known SDK version codes.

In order to conditionally run code based on the device's Android version, use the TargetApi annotation to avoid Lint errors, and check the build version before running the code specific to the API level.

Here is an example of how to use a class that was introduced in API-23, in a project that supports API levels lower than 23:

@Override
@TargetApi(23)
public void onResume() {
    super.onResume();
    if (android.os.Build.VERSION.SDK_INT <= Build.VERSION_CODES.M) {
        //run Marshmallow code
        FingerprintManager fingerprintManager = this.getSystemService(FingerprintManager.class);
        //......................
    }
}

Credit:Stack_Overflow_Documentation