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

Access to network usage history and statistics before Marshmallow

Using Neworkstats manager i am able to access to network usage history and statistics from marshmallow devices.If that app runs in below marshmallow unfortunately stopping with the below error. Caused by: java.lang.ClassNotFoundException: Didn't…
0
votes
1 answer

Android WebView mixed content not load in api level < 21

I want load a third party url (http://domain1.com) on my andoird app using a WebView. This url has a iframe with other domain (http://domain2.com) that has a video player. The page load successfully, but when play the video this not load (when…
victorpacheco3107
  • 822
  • 3
  • 10
  • 32
0
votes
1 answer

Alarm is called on Samsung Galaxy Tab 3, But not called on LeEco Le2

I'm developing an app, which sends notifications in a proper time in a future. If I call AlarmManager.init () in main activity - it gives me Toast after 5 seconds on Samsung Galaxy Tab 3 and LeEco Le 2, as it should. But if I call AlarmManager.init…
0
votes
2 answers
0
votes
1 answer

Default Style Resource pre API Level 21

I am looking to create a custom ViewGroup to be used in a library; which contains a few ImageButton objects. I would like to be able to apply a style each ImageButton; but I cannot figure out how to apply a style programmatically other than by…
0
votes
1 answer

To read a file from one gaming application(in C++) to my android app

I want to read a text file present in a different directory i.e Games Directory(/sdcard/Android/data/game_package_name/files) from my android app. Is there any way to do so, if yes then please suggest. Note: This is for production level application,…
0
votes
0 answers

How can I set an alarm manager to be triggered when there is internet connection?

I have used alarm manager to sound at a specific time or repeating on specific days but I can't seem to find a way to make it be triggered at a specific condition which is "on available network". I need to do this because I'm using an intent in the…
0
votes
1 answer

Confused as to why Android app crashes and what API levels mean

I recently developed a iOS and Android app with Xamarin. The app was used by a relative small number of users on a business event where I was personally present. Although the app ran find on all iOS devices and most Android I had a few Android…
Marco Miltenburg
  • 6,123
  • 1
  • 29
  • 29
0
votes
1 answer

getStartOffset returns wrong value of file in assets folder after upgrade of assembly conditions

The method getStartOffset() does not work correctly after I upgraded assembly conditions. Following fragment of code worked fine to build app with api 19 (Android Plugin 1.5.0 + Gradle version 2.2.1), but when I try do same with api 25 and other…
nailer
  • 81
  • 7
0
votes
1 answer

Is it possible to set android permission level for a broadcast receiver at runtime?

Is it possible to programatically set the protection level of an IntentFilter/Intent in java similar to how we can define it in the AndroidManifest.xml: We…
0
votes
0 answers

The following classes could not be instantiated:- android.support.design.widget.NavigationView

I'm trying to use this https://github.com/Siclo-Mobile/EZPhotoPicker in my app. I had my build.gradle (inside "app" folder) looking like this before the implementation (And the app working fine): apply plugin: 'com.android.application' apply…
Nahue
  • 320
  • 2
  • 18
0
votes
1 answer

using keystore android. targeting version 18 and above. have to use deprecated method calls?

I am developing an app using the Android KeyStore API calls to encrypt some string values. I am targeting API level 18 and upwards. I have a an if else block in my code which targets API levels 18 up to 23. My problem is that I either have to use…
filthy_wizard
  • 740
  • 11
  • 25
0
votes
0 answers

Android Implicit Intent doesn't work on some devices

I'm trying to open a pdf file from a uri by using an implicit intent like so: try{ Intent intent = new Intent(); intent.setAction(Intent.ACTION_VIEW); …
0
votes
4 answers

Visual Studio: Android SDK Setup (API Level 19 and 21,22,23)

I have this problem with the setup of Android SDK in Virtual Studio Community 2015. Whenever I try to install or repair VS, I always get problems with the setup of API Level 19 and 21,21 and 23. It always says that the packages were not downloaded…