Should a legacy Android application be rebuilt using SDK 2.1? - android

I have an Android application that uses the well known Strategies for Legacy Applications. It is build with the Android SDK 2.0 with manifest settings minSdkVersion="3" (API 1.5) and targetSdkVersion="5" (2.0). Question1: Since maxSdkVersion is not specified, the application should be installable and compatable with newly released Android versions 2.01 and 2.1 correct? At this point in time, I am not planning any enhancements that will use any new API features. Question2: is there any value in rebuilding the application with Android SDK 2.1? Question3: If so, should targetSdkVersion be changed from 5 (API 2.0) to 7 (API 2.1)?

Question1: Since maxSdkVersion is not
specified, the application should be
installable and compatable with newly
released Android versions 2.01 and 2.1
correct?
correct.
Question2: is there any value in
rebuilding the application with
Android SDK 2.1?
not really, if you're not planning on using anything new.
Question3: If so, should
targetSdkVersion be changed from 5
(API 2.0) to 7 (API 2.1)?
in general, targetSdkVersion should be the newest version you've tested your application on:
http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#target

Related

What is the minumun version to run firebase in a flutter project for iOS and Android?

I think that I'm giving some errors on my firebase flutter app on iOS and Android becouse it's running on low gamma of cellphones. Could you please tell me what's the minimun requirements to add firebase to a flutter project for both platforms.
Ios:
Make sure that your project meets these requirements:
Your project must target iOS 8 or later.
Swift projects must use Swift 3.0 or later.
Android:
By default, Flutter supports Android SDK v16 (Jelly Bean, released 2012), but multidex doesn't really work with Jelly Bean (though, it's possible). Configuring Jelly Bean to work is beyond the scope of this codelab, so we'll change the minimum target SDK version from v16 to v21 (Lollipop, released 2014)
Therefore in android use minSdkVersion 21
https://codelabs.developers.google.com/codelabs/flutter-firebase/#3
https://firebase.google.com/docs/ios/setup

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.

if i use android 4.1.2 (API 16) Android SDK will my apps work on Android 2.3

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.

What is minSdkVersion for Amazon Android in-app purchase SDK?

Some Amazon docs hint that it is 10, but examples run with 8. So what is the correct/safe/practical answer?
It is the minimum SDK requirement for application, App Developers put this variable to not install this app earlier version of device than min SDK version, it is just a safe check, to not install the app on incompatible devices
According to wikipedia http://en.wikipedia.org/wiki/Kindle_Fire the first Kindle Fire was based on Android 2.3.4 which is based on Android SDK version 10. Therefore there is no benefit to use minSdkVersion lower than 10.
If you use minSdkVersion lower than 10 your app will run on all Kindle Fires because new Android versions can run apps written for older Android versions.
However if you specify min SDK version 10 you can use all APIs that is available in the SDK version 10 but is not available in the Android SDK version 8.

Build Target and Min SDK version in Android

While creating an android project if i say that the Build Target of my Android porject is 2.2 (API Level is picked as 8) and in the text box for Min SDK version. If i put some value apart from the API level (smaller or greater than 8) of the build target then what happens?
Does the build happen according to the build target specified, but the application developed is compatible with the smaller android versions (if i specify API level < 8 ). Or the application developed is only compatible for the higher android version (if i specify API level > 8 ).
Can anyone please explain?
There is a similiar question already posted with an excellent answer:
Read the post by Steve H.
Android Min SDK Version vs. Target SDK Version
Say you set the manifest API level to 4, then the app will work on any api 4 device provided. BUT the project will be built to API level 8 so if you have any post-level 4 api methods in your code then the app will crash.
You can only put min SDK version less than your target version,it tell that your application can support to that min SDK version,but you should confirm that your application should run under min SDK version supported devices since the Build target versions may use new APIs which are available for that specific version and those APIs may not available in min SDK versions
ok.. if you have developed an application using particular sdk for instance Android 2.2 and your minSDKversion is < 8 then application is falsely declaring to android system that It can be installed in Android device having sdk version less than Android 2.2. In that case if application happens to install on Android 2.1 and if you re using API that are exculsiviely avaialbe in Android 2.2 platform and not on Android 2.1 then your application will crash on the device. if your minsdkversion > 8 then application won't get installed on the device having Android sdk 2.2 or lower version

Categories

Resources