Is it possible to use this library with android 2.3? - android

I am very interested in this framework: https://github.com/ragunathjawahar/android-saripaar
Unfortunately in the manifest.xml it says
<uses-sdk android:minSdkVersion="4" android:targetSdkVersion="15" />
Can I still use this with Android 2.3? I'm curious, because I do know there is a android v4 support library out there and I was wondering if that would help?

Well, API Level 9 is Android 2.3 - 2.3.2, also known as Gingerbread.
The android:minSdkVersion is 4, also known as Donut (1.6). So yes you can use it.
For all Codenames, Tags, and Build Numbers, check here

The minimum is 4 so as long as the SDK is above version 4 you can use it. So yes.

Yes. The android:minSdkVersion="4" says it's compatible with any version above API level 4 so you can use it since android 2.3 is API level 9

It does say minSDKverion 4, which is Donut (1.6), so why shouldn't you?
You can check the versions that correspond to the sdk numbers and their usage stats from here.

Related

How can I determine my Android API level?

How can I know which Android API level I am using. I need to make sure I am using version 1.1.0.
Edit:
My bad. I need level 14.
Thank you.
Build.VERSION.RELEASE will give you the version number as a String, such as 1.5
How can I know which Android API level I am using
I do not know what you mean by "using".
You can determine the API Level of the device that you are running on via Build.VERSION.SDK_INT.
I need to make sure I am using version 1.1.0
There was never a "1.1.0" release of Android. Android 1.1 did not have a ".0" suffix. Android 1.1 was released in early 2009 and is used on approximately zero devices today.
<uses-sdk android:minSdkVersion="14" /> in your AndroidManifest.xml
In general you're also interested in the compileSdkVersion of the project, which you can see in your build.gradle file.

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.

Is there a way to change a project from using API 12 to API 8

I set up my project to use Android 3.2 (API Level 12), but it seems like a lot of phones are still using Android 2.2 (API Level 8).
Is there a way to change my project from only supporting Android 3.2+ to supporting back to Android 2.2?
yes...just change the minsdk number in the manifest. You have to be sure that you don't use any feature that is not supported though...
in your AndroidManifest.xml add this line:
<uses-sdk android:minSdkVersion="8" android:targetSdkVersion="16" />
android:minSdkVersion tells the Store what the minimum version you are targeting is. In this case 2.2. Devices less than 2.2 won't be able to download your app.
android:targetSdkVersion tells the store what the best version you are developing for is. In this case 4.1. Devices over 4.1 can still download your app but certain features may run in compatibility mode.
NOTE: When you setup your project to use 3.2, all you did was select the Android SDK you wanted your IDE to use when checking and compiling your code. Without the uses-sdk line in your manifest you've targeted nothing.
Right Click Project -> Properties -> Android -> Select SDK version
Update Manifest, min/target api. (as others have described by others).
Go to your Manifest.xml file and edit the minSdkVersion to 4. That will set it way back to 1.5 or something like that :). You can make that number higher if you want to suit a higher API, but I like compatibility.

Android- Running my application on 2.1 and higher versions

I want to make application that support 2.1 or higher platforms. Does anyone have solution for it?
Can I use somekind of cross-platform for it or cross-platefroms are only for porting applications from differnt OS? Or there is any library i can use for this purpose?
Any application built with Android 2.1 API will work later versions of Android (theoretically). In the AndroidManifest.xml file, set the target SDK version to 2.1, and the 2.1 API will be loaded by Eclipse for the application. Done. It's still recommended to test it on later versions in case there's some slight variations that aren't documented, but most if not all things should work.
Just code your application and in your AndroidManifest put this somewhere <uses-sdk android:minSdkVersion="7" />.
That corresponds to Android 2.1, more details here http://developer.android.com/guide/appendix/api-levels.html

how to run android app in lower api target emulator?

I had made an application with target : Android 2.1 - API Level7. It works fine with the emulator with target : Android 2.1 - API level7. And after that i tried to run the same app in an emulator with target : Android 1.5 - API Level3. But it is not working. I am using the Eclipse to built my application..
Can anyone say why it happens like this? Or, can anyone simply describe how to make changes to run an app build in API Level7 to 5 with steps.. I am new to this environment, i may be wrong with my procedures..
So plz guide me..
Use the min sdk version in your manifest file to Android 1.5 api level 3. Your api target version is still the same.
Add the following line in your AndroidManifest.xml file
<uses-sdk android:minSdkVersion="3" />
this will allow your app to run in any device with api level 1.5 or higher.
Set the minSDK to the lowest level you want to support, and the max to the highest level. The set the target to whichever makes sense.
In summary, look at this: http://developer.android.com/guide/topics/manifest/uses-sdk-element.html.
You choose the min, target and max SDK in the manifest file.
android is backwards compatible, not forwards, so your target api should be the lowest version of android ynu would like your app to run on. your target api should be 1.5.
Yes as everyone said. Android minimum-sdk-version is trick for you question.
If you have target API 2.3.3 then minimum-sdk-version will be 10(By default).so it will run on 2.3.3, 3.1,3.3 and more which has minimum-sdk-version more than 10.
So if i change minimum-sdk-version to 4 it will work on device which have version more than 4.
No you have two solution --
1) change minimum-sdk-version in android-manifest
2) change target api
project->rightclick->properties->android then select Target API

Categories

Resources