I set my android app with below SDK settings. If some using android device with high version > 17. Will my App be run without problem on that device? Thanks.
android:minSdkVersion="11"
android:targetSdkVersion="16"
Yes, it will work(on api level greater than 17) without any major issue, there may be user experience related problems on latest versions(say 5.0 or 5.1).
But it is recommended to use latest SDK level as target sdk.
Related
I'm developing android app and our boss want to upgrade the app to work on Android 6.0. So i upgrade the Build SDK target to SDK 6.0 and then I changed my android:targetSdkVersion to 23 in Manifest file. And then the app appear only white screen and nothing happened. Why is that happening? If I re-change android:targetSdkVersion to 22 then it's working. But permission request need for Android OS 6 huh? That's why i need to change android:targetSdkVersion to 23. Please guide me. As for addition, I've to develop that app with Eclipse. The boss don't want to use Android Studio. Please guide me with Eclipse solving. Thanks you very much.
Even if use target SDK below 23 it works on 6.0.in android only if you use min SDK 19 and if you run on device below API level 19 it won't but always higher versions support lower API levels through my knowledge, and be sure with your question.
I want to know what is the "android:minSdkVersion" and the "android:targetSdkVersion=" to use my android app on mobile-phone with Android version 4.0 .
Target Should always be the latest that you have installed on your PC . ie: 22.
Minimum would be 14.
The API 14 is the one related to Android 4.0. So you could put targetSdk to 14. The minSdkVersion is the minimal android API that will be allowed to install your app so for more users, the lower the better !
Still, if you set targetSdk to higher API, like 22, your Android 4.0 device will be able to installyour app.
We have uploaded an app into market with following api level in AndroidManifest file
uses-sdk android:minSdkVersion="15"
android:targetSdkVersion="16"
It is for support of api level 4.1.1 and 4.1.2. But this app can be installed on 4.2 which has api level 17. Any ideas.
targetSdkVersion does not specify the max SDK API level. Use maxSdkVersion as well.
This link may also be helpful.
android:maxSdkVersion="16" :- This is the maximum SDK version number that an
application works on. [integer]
if i use android 4.1.2 (API 16) Android SDK will my apps work on Android 2.3 phones. i have downloaded android 4.1.2 sdk tools and other packages.
You will need to set the minimum SDK attribute in your manifest to 2.3 to ensure you app will work on earlier versions of the OS.
Your app will work fine, assuming you are not using any API calls from a later version.
The Android Dev team suggests you always compile against the newest version you can support. So, you are on the right track.
So bottom line, you are on the right track, just make sure to test your app against a 2.3.3 version of the emulator to ensure you are not using any un-supported API calls.
No, if your minimum sdk version is 16 it wont work on that android version.
if you want it to work on that specific version then set the minimum sdk version to 9. You can change this in the apps manifest file.
<uses-sdk
android:minSdkVersion="9"
android:targetSdkVersion="21"
/>
If you are getting errors probably saying "This code uses the minimum sdk to be api 16 or higher"
find alternate ways to modify the code for older android phones. If that does not work then dont support old version of android maybe.
When you want to create project through wizard, it asks you enter Project Build Target. Assume that
I want my application to support Android 2.1 and above,
My test devices are a hand phone with Android 2.3.3 and a tablet 7" with Android 3.2.
Is it mandatory to choose "Android 2.1 (API level 7)" in Project build target?
May I set Project Build Target to "Android 4.0.3 (API level 15)"
Manifest:
<uses-sdk android:minSdkVersion="7" android:targetSdkVersion="15"/>
Yes, the project build target SDK version may be higher (but not lower obviously) than the minimum SDK version specified in the Manifest. Just make sure to avoid calling APIs that came in with higher SDK versions than the minimum you specified.
Yes you can. The targetSdkVersion helps the device with higher API level to use the newest (optimized) version of the implementation rather than the default implementation of the minSDKVersion and prevent enabling the compatibility behaviors. Make sure you test on device running this version though.
Ref: targetSdkVersion