After I change my targetSDKversion to 23, app Screen appear white screen - android

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.

Related

Can I trust that my libgdx app for android will work on Sdk version 14?

This is all in the build.gradle for android.
So if I set the minSdkVersion to 13 Android Studio says it's too low, but it seems to be happy if I set it to 14. Is it safe to assume that it will work on sdkVersion 14? Unfortunately I do not have a phone with sdkVersion 14, and I haven't been able to get the emulator working for that version.
My buildToolsVersion is set to 28.0.3
compileSdkVersion is set to 27
targetSdkVersion is set to 27
Also I tried setting up a virtual device of Nexus 4 with API 15 in the android studio AVD manager, but it just has a black screen on the virtual phone and never seems to start up. Anyone had the same problem when trying an emulator with low API ?
As long as you aren't doing any tricky stuff in your Android module, you'll be fine. There are many games released with LibGDX installed on every version of Android. If there were a problem with specific Android versions, it would have turned up in the LibGDX issue tracker.
By tricky stuff, I mean customizing permissions in the manifest, calling Android code by reflection, etc. Things that have behavior changes across different versions of Android. When you target Android SDK 27, all the Android behavior changes in the various versions between minSdkVersion and targetSdkVersion take effect.
OpenGL ES 2.0 is unsupported in old versions of the Android emulator, which is why you get the black screen.

I want to keep the minSdkVersion 14 and the targetSdkVersion 19 and the compiledSdkVersion 23. Is it is technically OK?

I want to keep the min Sdk Version 14 and the target Sdk Version 19 and the compiled Sdk Version 23. Is it is technically OK or not?
if it is OK then will my App run properly on all Android devices?
Yes, it is technically OK, & if you are not using any dangerous permission then it will work on all android devices above API 14. If you are using any permission related task, then you will have to check the permission every time before using, otherwise your app might crash over some devices.
Read for more details:
https://developer.android.com/guide/topics/manifest/uses-sdk-element.html
https://medium.com/google-developers/picking-your-compilesdkversion-minsdkversion-targetsdkversion-a098a0341ebd
It's technically OK. Have a look at these very well described answers in other posts:
https://stackoverflow.com/a/27629181/4315095; https://stackoverflow.com/a/26694276/4315095

Visual Studio Is not displaying all Installed APIs

Goodday, I have had Visual Studio and Xamarin for a while and recently i have started to learn android development. I have made a pretty cool android app now, my problem is that i had APIs 23, 19 and 18 installed before. Now i want my app to support android 2.2 (API 8) i have installed the SDK Platform and Google APis for API 8 but it doesnt show up in the APP manifest for minimum api to support in Visual Studio, i have tried restarting VS and even the system but it only displays APIs 23, 18 and 19.
Am i missing something please?
Maybe it is a bug. But if you want to change your minimum API level just collapse Properties, open AndroidManifest.xml and change android:minSdkVersion attribute in uses-sdk tag to 8.

SDK version for Android version 4.0

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.

Lowering minSdkVersion when using APIs introduced after, fails to cause errors

I created an app compatible with API level 14+. I want to now make it compatible with API level 10+. I know for a fact I am using API calls introduced in 14, so I was planning on lowering the minSdkVersion first, and then fix the errors that it caused.
The only problem is, when I lowered the minSdkVersion in the manifest, no errors are thrown. It used to throw errors when I did this, but now it isn't for some reason.
Is there a way to force Eclipse to check my API calls and make sure they are compatible with the current minSdkVersion?
Thank you.
Right-click over the project in Package Explorer, and choose Android Tools > Run Lint.
If you change the minSdkVersion it won't change what sdk the app in compiled against, only the api levels that the application can be installed on.
If you want to compile against a lower sdk change the targetSdkVersion.
Links: Difference between "Build Target SDK" in Eclipse and android:targetSdkVersion in AndroidManifest.xml?
and http://developer.android.com/guide/topics/manifest/uses-sdk-element.html also Android Min SDK Version vs. Target SDK Version

Categories

Resources