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
2
votes
2 answers

Understanding Android API Levels

Jelly Bean has come out and they have some pretty nice features. My question is that I want to target as many devices as possible, but at the same time have an app that can if possible use all the features in the highest API level. So say for…
Springy
  • 588
  • 5
  • 15
1
vote
0 answers

Android studio warning that Android API 29 and 33 are missing or currupt

I am getting the following 2 warnings in Android Studio. It doesn't prevent me from building and running my flutter app. How can I fix this? If they are missing, how do I install them? And if they are corrupt, how do I remove/uninstall them and then…
Paul Coshott
  • 735
  • 1
  • 9
  • 16
1
vote
1 answer

Android Studio lint warns of missing permissions that are not required at my target API level

I'm doing some work on an internal, legacy Android app. The target SDK version is set to 28 in the Gradle build file, and the compile SDK version is set to 33. The issue I face is that Android Studio lint is showing me an error regarding a missing…
1
vote
0 answers

How to request runtime permission for PDF in android 13(API level 33)?

I am trying to access a PDF file from external storage, but the request for runtime permission to access the PDF file is not working on Android API level 33 (Android 13). Could you please provide a solution that works across all Android API…
1
vote
2 answers

Android Api 28 - crash_report=Exception is: android.database.sqlite.SQLiteException

I have written the below query which is working fine on Api 29 and 30 but app is crashing on Api 28 only with the following log System.out: crash_report=Exception is: android.database.sqlite.SQLiteException: no such column: true (code 1…
Abm
  • 271
  • 2
  • 15
1
vote
1 answer

Get State Drawable from StateListDrawable for Custom View on Android API<29

How can I use StateListDrawable for my Custom View on Android before Q version (API<29)? I have an XML StateListDrawable to enabled/disabled states
1
vote
1 answer

Flutter: Issue when migrate from Android 11 (API level 30) to Android 12

i'm facing with problem when migrate from Android 11 to Android 12 i have change my targetSdkVersion to 31 and add android:exported="true" to AndroidManifest but i'm still get error when build…
1
vote
1 answer

BleManager not work on Android Api Level 31

I have a app which scans the bluetooth devices. It was working well until android says api level must be 31 or higher. So i change my code like below: buildscript { ext { buildToolsVersion = "29.0.3" minSdkVersion = 21 …
1
vote
1 answer

None of the virtual devices in android studio offer api 31, how can i run my code if i selected the api as >=31?

I selected the API for my android studio app to be 31 or higher to be able to use the jetpack plug-ins, but none of the virtual device configuration phones have this API, so I can't run my code. How can I go around this? Thank you!
1
vote
1 answer

call requires api level 24 java.util.comparator

I am getting api level error when using Comparator, but when I add @RequiresApi(N) annotation, error is solved. The problem is after adding @RequiresApi(N) annotation, this app cannot be run in api level below 24, I get this error on API 23 phone…
Raj
  • 63
  • 1
  • 9
1
vote
5 answers

Converting Android version 2.3 to 1.5

I have developed one application in Android version 2.3, and want to convert it into 1.5. Unfortunately I am experiencing some problem with that. I have changed minSDK from 8 to 5 changed from property But I still get the problem. Any ideas?
Nikunj Patel
  • 21,853
  • 23
  • 89
  • 133
1
vote
1 answer

i'm not getting a response from volley

i'm trying to build a weather app as my first time working with and api so i'm starting with the documentations and still not getting a response fun getWeather(view:View){ val city = cityName.text.toString() cityName.text.clear() …
1
vote
2 answers

How to copy a private folder with content to public directory in android q and higher?

I have a private folder that contains sub folders with images and videos, I need to copy that folder to Environment.DIRECTORY_PICTURES for public val fodler = getExternalFilesDir("Folder") // contains sub folders with images and videos val…
1
vote
1 answer

Custom Android/Flutter versions for specific API levels

I have a Flutter app that's on Google Play and I'm about to add a new feature that requires adding a package that supports only 21+ API Levels. I still want to support API levels below 21 by adding a custom version of my app for them that doesn't…
1
vote
0 answers

Android network-security-config does not work in API 24 version and below

I'm create android app witch is use backend server. This server use https connection and also use self signed certificate. To be able to communicate with server from android app I've use network-security-config.xml. Here is the…