Questions tagged [target-sdk]

An integer designating the API Level that the application targets. This attribute informs the system that you have tested against the target version and the system should not enable any compatibility behaviors to maintain your app's forward-compatibility with the target version.

Useful Links

74 questions
3
votes
2 answers

Can I set targetSdkVersion to less than minSdkVersion?

I need features from Android API-level 11 but if I set targetSdkVersion to 10 then I get the old-style menus that I want (with the menu button). Are these values "legal" to set, or does targetSdkVersion have to be higher or equal to…
JohnyTex
  • 3,323
  • 5
  • 29
  • 52
3
votes
2 answers

XCode base SDK version in code

How can I get the version of the base SDK in code? I am currently building for iOS in XCode 6 and using the base SDK 8.1 . I would like to know if there is any define with the value of the SDK to be able to test it and allow building with different…
Scorpio
  • 1,124
  • 1
  • 11
  • 28
2
votes
0 answers

React Native: If I'm updating targetSdkVersion, should I update anything else?

I'm upgrading the version of React Native OneSignal to 4.8.0, and in the ChangeLog it says change your Android targetSdk to 33. I currently have compileSdkVersion and targetSdkVersion both set to 31. What I Want To Know: Should I also set…
gkeenley
  • 6,088
  • 8
  • 54
  • 129
2
votes
2 answers

minSdkVersion is newer than the device API Level error while installing app

I am installing Android app with target sdk version android S in Android phone with Api level 30. My default config settings for app is like compileSdkVersion 'android-S' buildToolsVersion "30.0.3" defaultConfig { applicationId…
Satyam Gondhale
  • 1,415
  • 1
  • 16
  • 43
2
votes
1 answer

HTTP URL is not working in the ExoPlayer for Android 10

I have an HTTP URL of audio. The URL is working fine with the ExoPlayer v2.7.0 when android TargetSDKVersion is 26. When the TargetSDKVersion is set to 28, it is not working. Getting the following error: W/MediaPlayer: Couldn't open…
2
votes
1 answer

if i use lower than Oreo target sdk, then my app will not have Oreo Background Limitation?

We have private app store, so we don't need to set target sdk 26(oreo) or higher. Then if i set target sdk 25 to my app, then will it not have Ore Background limit even in OREO phone?
Knowledge Drilling
  • 986
  • 1
  • 8
  • 22
2
votes
3 answers

How do I ensure users keep their SQLite data when I update on the google play store?

I would like to raise my target and compile version to 28 from 26. This is because a user emailed me and said that the app doesn't work properly on his phone which runs andoird 9. Once I upped the target and compile versions, I tested out the app…
Miles Adamson
  • 357
  • 1
  • 3
  • 9
2
votes
2 answers

“IllegalStateException: Only fullscreen activities can request orientation

i'm tyring to update Glide library from 3.8.0 to 4.5.0 but i have this problem with recyclerview when i add com.github.bumptech.glide:glide:4.5.0 to my Build.Gradle file i get this error in recyclerview compile line . All com.android.support…
ali
  • 189
  • 3
  • 14
2
votes
1 answer

Update library module's targetSdkVersion when updating app's targetSdkVersion

I have an app which uses a library module, both having targetSdkVersion 21. Now I want to make my app marshmallow compatible. So while updating my app's targetSdkVersion to 23, do I need to update library module also ?
Alexander
  • 576
  • 5
  • 17
2
votes
2 answers

confused about android runtime permissions

So this whole new android runtime permissions has gotten me confused. My app is currently compiling and targetting version 23 which means I have to use runtime permissions. My app primarily uses the camera api which needs the camera permission so I…
2
votes
3 answers

How can I ensure my app can not be installed on Marshmallow

In android gradle build file I have the following closure: android { compileSdkVersion 21 buildToolsVersion "23.0.1" defaultConfig { applicationId "com.mycoolapp" minSdkVersion 16 targetSdkVersion 21 versionCode 41 versionName…
j2emanue
  • 60,549
  • 65
  • 286
  • 456
1
vote
0 answers

Using Sope Storage in Android 11 and above to get downloaded file

I have an Android application. It has a download manager to download an APK file (saved inside Download directory) and I want to get and install APK file after it is downloaded. It works properly on Android below 11 but from Android 11 we need to…
Muhammad Ali
  • 720
  • 8
  • 21
1
vote
1 answer

Cordova app crashes after splash screen with targetsdk 29

In order to meet Google requirements I switched the targetsdk version to 29 on my Cordova app (that uses xwalk 2.4.0). After the update the app crashes when starts: I've found the following errors in logcat: 11-02 19:13:46.079 28309 28451 W…
1
vote
2 answers

PackageManager not returning correct packages with targetSdkVersion 30

I am using the PackageManager to get a list of all packages installed on the user's device. This is working perfectly fine, until I switch from targetSdkVersion 29 to 30. When I increase the targetSdkVersion from 29 to 30, the PackageManager is not…
1
vote
3 answers

How to fix an error while upgrading the targetSdkVersion from version 25 to 27?

As play store doesn't provide me the permission to upload one apk with a targetSdkVersion of 25. So, I upgraded my targetSdkVersion from 25 to 27 and downloaded the all necessary libraries by adding dependencies. I am provided below the entire…
S. M. Asif
  • 3,437
  • 10
  • 34
  • 58