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
0
votes
1 answer

Android sdk files corrupted

A little window popped up and said something like "do you wanna update Intent.java API 29 to 30", I said yes and all SDK files became like this. All of the imports and functions have a 'cannot resolve symbol ...' error. What i tried so far: Removed…
0
votes
1 answer

layout.xml different behavior depending on API level (25+ works as it supposed to work, and 24- works bad)

I have an custom adapter layout resourse file for my ListView:
user13271426
0
votes
0 answers

ChipGroup for older android version

i made an app and realized that it doesnt work for older versions cause ChipGroup only works for api level >= 28. I found multiple tutorials that show how to solve this but sadly it didnt work. Is there maybe another way to get a similiar…
Gwinzy
  • 9
  • 1
0
votes
0 answers

Binary XML file line #11: Error inflating class android.view.View

I have this error on devices that API below 24 05-02 19:56:33.554 17406-17406/com.aisolutions.myapplication E/AndroidRuntime: FATAL EXCEPTION: main Process: com.aisolutions.myapplication, PID: 17406 java.lang.RuntimeException: Unable to…
0
votes
0 answers

How do I migrate an Android Studio Application .apk from API Level 18 to API Level 28?

I am attempting to republish an open source app that was created in Android Studio with an API of 18 in Android 4.3. When I attempt to publish the .apk on Google Play, I get an error that says "Change your app's target API level to at least 28." I…
0
votes
1 answer

What is "Native method not found" bug with OpenCV in api 19?

I have implemented openCv in my android project, project runs on device with api 23, correctly. But just this project crashed on device with api 19. caused by: java.lang.UnsatisfiedLinkError: Native method not found: …
SadeQ digitALLife
  • 1,403
  • 4
  • 16
  • 22
0
votes
1 answer

android - how to put actionbar size in dimens resources file

I need to have actionbar size in the dimens resources folder , I need to have different size for different api version . I've tried these code but all of then ran into an error :…
Navid Abutorab
  • 1,667
  • 7
  • 31
  • 58
0
votes
2 answers

change targets API level to 28 SDK

To change the target SDK to 28, I did the following in build.gradle: android { compileSdkVersion 28 defaultConfig { targetSdkVersion 28 ... dependencies { implementation fileTree(dir: 'libs', include:…
Shawn
  • 530
  • 1
  • 5
  • 15
0
votes
1 answer

Targeting API 28 on delphi

I have a problem trying to publish my APK to the Google Play store. It says I must update my API level at 28. The application uses a maps service, so it must have the Internet and GPS permissions. Does anyone know how to update the API level on…
Arnau Serra
  • 83
  • 2
  • 7
0
votes
1 answer

LocalDate alternative for API level 19 or lower?

I'm developing an app for managing appointments and had already made the entire backend with LocalDate and LocalTime. However, it happens these classes are only supported for API level 26 or higher, which is too high. I know Date exists and will use…
0
votes
1 answer

How to use toAbsolutePath and Paths.get from java.nio with lower API

I have an app that needs to send multiple image attachments in an email. To send the images, I need an absolute path. For this, I use functions .toAbsolutePath and Paths.get from java.nio. Both of these functions only work with API 26 and higher.…
0
votes
2 answers

Why MediaPlayer getDuration() method return -1 on low quality audio?

I updated my app android API-23 to API-28 now MediaPlayer getDuration() method return -1, in api-23 getDuration method working fine but in latest api having issue. when using low quality (i.e 16kbs) of audio. but same time when i use high quality…
Attaullah
  • 3,856
  • 3
  • 48
  • 63
0
votes
1 answer

GoogleServices API level changing for earlier than Nougat (API level 24)

I was working on an application in android studios. I added dependencies for google play or google play services. I've installed Android Virtual Device (AVD) with API 28 and I have a mobile cell phone with API 24. When I run the application on the…
0
votes
0 answers

What is the most efficient way to support builds with different minimum API Levels where sections of code require different APIs

I have a project where I need to make new builds once a month or so with incremental changes. The previous minimum supported API level was 19 and some devices were at that level so it was necessary to support it. A new dependency that is being…
PGMacDesign
  • 6,092
  • 8
  • 41
  • 78
0
votes
1 answer

why does this work on api 21 when the error says it shouldn't

I have just upgraded the gradle plugin in my app to version 3.2. I'm now getting a lint error stating that FloatProperty, which was already being used in my app, cannot be used. The minimum API level in my gradle file is 21. The error is: Class…
tom808
  • 320
  • 2
  • 11