Questions tagged [android-version]

The version history of the Android mobile operating system began with the release of the Android beta in November 2007. The first commercial version, Android 1.0, was released in September 2008. Android is under ongoing development by Google and the Open Handset Alliance (OHA), and has seen a number of updates to its base operating system since its initial release.

Since April 2009, Android versions have been developed under a confectionery-themed code name and released according to alphabetical order: Cupcake (1.5), Donut (1.6), Eclair (2.0–2.1), Froyo (2.2–2.2.3), Gingerbread (2.3–2.3.7), Honeycomb (3.0–3.2.6), Ice Cream Sandwich (4.0–4.0.4), Jelly Bean (4.1–4.3), and KitKat (4.4). On 3 September 2013, Google announced that 1 billion activated devices now use the Android OS worldwide. The most recent major Android update was KitKat 4.4, which was released to commercial devices on 22 November 2013, via an OTA update.

Reference: http://en.wikipedia.org/wiki/Android_version_history

273 questions
192
votes
17 answers

Android Studio rendering problems

I'm using Android Studio 0.2.3 and when opened an activity layout normally, the preview should appear on the right side, so that I can switch between Text and Design mode, which should again show the preview of the layout. But no preview is shown…
wasp256
  • 5,355
  • 9
  • 53
  • 94
56
votes
4 answers

Android version check

I'm not new to Android and I'm well used to the version handling and how to condition it, but when I see this it troubles me... // Check if we're running on Android 5.0 or higher if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) { //…
TacB0sS
  • 9,456
  • 11
  • 66
  • 111
43
votes
5 answers

Minimum Android version with flutter

Which minimum android version is supported by flutter? Do some plugins have any effect on which version is not supported? I tried to run my flutter app on an android emulator, but with the version android 16 it doesn't work and the app crashes. Do I…
GreenTigerEye
  • 3,431
  • 6
  • 17
  • 29
24
votes
2 answers

is it possible to show widget only for a certain android version?

is it possible to show widget in "Add to home screen > Widgets" Dialog only for a certain android version without uploading two APKs and assigning to proper SDK version numbers?
Cloudgiant
  • 243
  • 1
  • 6
22
votes
3 answers

Unity 3D: What is the Android Bundle Version and Version Code and how do they relate?

a) What does the Android bundle version and version code denote? b) What is the difference between the bundle version and version code? i) Suppose I have a bundle version of 0.137, how does the version code relate to this? Can the version code just…
ina
  • 17,912
  • 37
  • 113
  • 187
16
votes
1 answer

Fix android studio warning about `layout_marginHorizontal`

I'm getting these warnings in my android build. Warning:(19, 9) Attribute `layout_marginVertical` is only used in API level 26 and higher (current min is 24) Warning:(20, 9) Attribute `layout_marginHorizontal` is only used in API level 26 and higher…
aaaidan
  • 6,422
  • 8
  • 58
  • 98
15
votes
3 answers

Android Custom Alert Dialog Display Error after changing the Build Version

I am developing a simple demo . Here in this demo, I am just creating one simple custom alert dialog . It works fine. It shows me the perfect result when i build application in 1.6, but when i change the android version from 1.6 to 2.2, it shows the…
Chirag
  • 55,270
  • 29
  • 150
  • 194
13
votes
3 answers

How to Use Unsupported Exception for Lower Platform Version

I have a DialogFragment that handles login and fingerprint authentication for my application. This fragment uses two classes that are exclusive to API 23, KeyGenParameterSpec and KeyPermanentlyInvalidatedException. I had been under the impression…
12
votes
7 answers

ActionBar pre Honeycomb

I am writing an app for android (2.1 > 3.1) and I would like to use the familiar practice of using the app Icon in Honeycomb apps to go up to the home activity, however, when I run the activity on earlier, non Honeycomb devices where the…
rabbitt
  • 2,278
  • 8
  • 26
  • 40
12
votes
5 answers

How can I tell which Android Support Library v4 revision I use?

I can see in the Android SDK manager the version installed on my computer (in Android SDK manager), but usually a project uses its own copy from the libs folder. Is there a way I can tell which version is the android-support-v4.jar being used in a…
Asaf Pinhassi
  • 14,214
  • 11
  • 102
  • 121
10
votes
0 answers

How to check Android version in code

Possible Duplicate: android get version of system How to Identify current android device OS from code? So from my application i need to know the current device version (2 is 5 or 2.01 6 Donut - 2.01 or 2.2 7 Eclair)?? Because if it's 2.2 i want…
user430926
  • 3,837
  • 12
  • 49
  • 75
9
votes
2 answers

Relationship between OS version, API Level, and Java version

I know there are a lot of questions on here about Android API Level and Version but this question is different so please don't mark it as a duplicate. I am wondering how Java version 1.6, 1.7, 1.8... relates to those two. The source of my confusion…
strikerdude10
  • 565
  • 5
  • 11
9
votes
1 answer

Since which Android version is "drawable-nodpi" supported?

Since which Android version is "drawable-nodpi" supported? Is it safe to put images in "res/drawable-nodpi" and expect them to work in all android version from at least since 2.0(Eclair) and up?
Hari Krishna Ganji
  • 1,577
  • 1
  • 19
  • 33
8
votes
3 answers

Clearing App Data on update

I need to clear(equivalent to Clear Data in App Settings) all the old data in the app programmatically when the user updates the app from Google Play Store or any other sources. This is because I don't need any of the existing data from the old app…
Joshua
  • 479
  • 6
  • 20
8
votes
3 answers

Does BuildConfig.VERSION_CODE not get changed if we are using multiple APK's

I am creating multiple apk's for each ABI, I did this to assign separate version code to each apk. ext.abiCodes = ['armeabi-v7a':1, mips:2, x86:3] import com.android.build.OutputFile android.applicationVariants.all { variant -> …
1
2 3
18 19