Questions tagged [android-api-levels]

Each Android version is assigned a unique integer identifier, called the API Level.

As the Android platform evolves and new Android versions are released, each Android version is assigned a unique integer identifier, called the API Level. Because users install apps on older as well as the most recent versions of Android, real-world Android apps must be designed to work with multiple Android API levels.

Each release of Android goes by multiple names:

  • The Android version, such as Android 4.4
  • The API level, such as "API Level 19"
  • A dessert name, such as "KitKat"

Each Android device supports exactly one API level – this API level is guaranteed to be unique per Android platform version. The API level exactly identifies the version of the libraries that your app can call into; it identifies the combination of manifest elements, permissions, etc. that you code against as a developer. Android's system of API levels helps Android determine whether an application is compatible with an Android system image prior to installing the application on a device. When an application is built, it contains the following API level information:

  • The target API level of Android that the app is built to run on.
  • The minimum API level of Android that is required to run the app.

These settings are used to ensure that the functionality needed to run the app correctly is available on the Android device at installation time. If not, the app is blocked from running on that device. For example, if the API level of an Android device is lower than the minimum API level that you specify for your app, the Android device will prevent the user from installing your app.

Source: https://developer.xamarin.com/guides/android/application_fundamentals/understanding_android_api_levels/

324 questions
9
votes
1 answer

Is there any alternatives of letterSpacing attribute for EditText in API level 20 or below

I've added Why my question is not duplicate of this question in Edit Section, Please review.. We use letterSpacing attribute in EditText to define the spacing between letters like . But as per documentation, This was only introduced in API level 21…
Shree Krishna
  • 8,474
  • 6
  • 40
  • 68
8
votes
1 answer

why android ndk standalone toolchain do not support arm64 with api 19 but android ndk cmake does

I used to build arm64-v8a lib of api level 19 use android.toolchain.cmake comes with Android NDK r16b like this. ${CMAKE} \ -DCMAKE_TOOLCHAIN_FILE=${TOOLCHAIN_FILE} \ -DANDROID_NDK=$ANDROID_NDK_HOME …
guorongfei
  • 309
  • 2
  • 10
8
votes
4 answers

android gridlayout not showing in emulator API 22

I have an app that functions exactly as desired on an actual device Nexus 6P running API 23 and an emulated 6P, 5 & 4 running API 24, but is showing odd behaviour wrt GridLayout on emulated Nexus 5 & 4 running API 22. The app only has a single…
8
votes
3 answers

ripple drawable crashes the app on Android API 19

I am using a custom ripple drawable
Atef Hares
  • 4,715
  • 3
  • 29
  • 61
8
votes
4 answers

Suppress API level warning in code

I am trying to create an intent to create an sms with compatibility for API levels higher than KitKat. The code works, but I got a warning that the API level 19 is required. I tried to solve it with @TargetApi(Build.VERSION_CODES.KITKAT) but got a…
TheTool
  • 309
  • 2
  • 12
7
votes
5 answers

How do I hide the status bar in my Android 11 app?

Every method I came across to hide status bar of my Android app is deprecated in Android 11. Does anyone know about any current acceptable method? Also I use Kotlin to develop my apps.
7
votes
2 answers

“Obsolete custom lint check” from `androidx.appcompat.AppCompatIssueRegistry` which requires a newer API level

I’ve got a project in which I get the following Android lint warning: Obsolete custom lint check ../../../../../../../.gradle/caches/transforms-2/files-2.1/fc4398fa701898f50fcec85691d33578/appcompat-1.2.0/jars/lint.jar: Lint found an issue registry…
mirabilos
  • 5,123
  • 2
  • 46
  • 72
7
votes
2 answers

Does Android's new 64-bit requirement mean the new minimum API level is 21 for apps with native code?

Consider the following: Typically, developers will set the minSdkVersion to 16 because this covers over 99% of devices (1). However, on August 1, 2019, Android will require all apps to offer 64-bit versions (2). Furthermore, the NDK API level…
Jon McClung
  • 1,619
  • 20
  • 28
7
votes
1 answer

Android - evaluatejavascript for before api-level 19

evaluatejavascript is available API-level 19 and later. It has a callback. I know that I can use loadUrl instead of evaluatejavascript for before API-level 19. But how can I handle return value from script? Is there a solution for this? String…
user2362956
7
votes
1 answer

What's the earliest Android API level I can use Kotlin with?

I think the question is pretty clear but what's the earliest API level I can target on Kotlin?
warsong
  • 1,008
  • 2
  • 12
  • 21
7
votes
2 answers

Which API level to use with Support Library in Android?

I want to create an Android app that can be used on 2.3.3 all the way through to 4.0.3. I want to use the Support Library, so that I can use fragments, etc. Do I set the build target to API level 10 (2.3.3) or do I set it to 15 (4.0.3)?
matt_lethargic
  • 2,706
  • 1
  • 18
  • 33
6
votes
4 answers

Text to Speech is not working in API level 30 other than English language

I implemented the text to speech in language "Hindi" Its an Indian language my application which is working fine till the API level 29. Its working fine for English but not for the Hindi. But in new devices which are of API level 30, it's not…
6
votes
2 answers

Android Gradle produce a TransformException: java.util.zip.ZipException: error in opening zip file during transformClassesWithDexForRelease

I have a project in android studio for an Android application. The project have 6 modules (3 internals libraries, one android app module, one wearable module and one module to share code between app and wearable), everything was working well until…
MoAdiB
  • 395
  • 2
  • 10
6
votes
1 answer

Stop logging of Android Beacon Library

I am trying to stop the debugging spew of the Android beacon library, but it does not work. I have this in my gradle: compile 'org.altbeacon:android-beacon-library:2.3.3' I tried: public BeaconManager(Context ctx, org.altbeacon.beacon.BeaconManager…
gmmo
  • 2,577
  • 3
  • 30
  • 56
5
votes
1 answer

Android 11 JNI disable fdsan

I have an App that uses a library with native libs and now in Android 11 is crashing due to fdsan. I have contacted the library providers, but they are not going to deliver a new version of the library with this issue solved, so I need to be able to…
1 2
3
21 22