I am new to android . I want to have an app does gives backward compatibility also means it should support versions from kitkat and above. If I make Project build target(Properties --> Android) to Android 5.0 (API-21) then it means it will run in lollipop only? If I want to add support library then which library should I import right now I have seen people importing appcompat v7 library for lollipop development. I know this one is quite basic question.
Asked
Active
Viewed 5,388 times
-4
-
1You use Android Studio or Eclipse?? – akhil batlawala Sep 22 '15 at 08:57
-
2Edit your old answer. Don't ask a new one. Deleting your old badly received question and reasking it will only hurt your credibility on this site and could eventually lead to an automatic ban if your average question quality is too low. – Xaver Kapeller Sep 22 '15 at 08:58
-
@akhilbatlawala Eclipse :) Don't tell me studio is better.I knw that alreday but still want to use eclipse – Loren Sep 22 '15 at 08:58
-
@akhilbatlawala using Android Studio or Eclipse makes exactly what difference? This user has asked this question before, don't answer it... – Xaver Kapeller Sep 22 '15 at 08:59
-
@XaverKapeller Dude what's your problem.I did not find suitable answer there and my question was wrong (not clear) so instead of editing ,I by mistake deleted it.What's the big deal. Grow up kiddo..!!! – Loren Sep 22 '15 at 09:06
-
@Loren nothing, but deleting your badly received question and reasking it is explicitly forbidden on Stack Overflow and as I explained continued behavior like this will eventually lead to an automatic question ban. I am just warning you. It is always better to edit your old question. – Xaver Kapeller Sep 22 '15 at 09:10
-
@Loren and what do you mean you did not find a suitable answer there? You waited maybe not even two hours? I was about to post an explicit answer but you just delete your question. You know you can undelete the question as well, do you? Getting good answers on Stack Overflow can take days and I am just trying to warn you that this behavior is not in your own best interest. – Xaver Kapeller Sep 22 '15 at 09:15
-
@XaverKapellerYou can post that answer here. I am new to Stack overflow .Don't know much about it's strict rules. – Loren Sep 22 '15 at 09:17
2 Answers
1
Just write Minimum sdk version in your manifest file
<uses-sdk
android:minSdkVersion="19"
android:targetSdkVersion="21" />
Just set minSdkVersion and targetSdkVersion in app gradle file.
android {
compileSdkVersion 23
buildToolsVersion "23.0.2"
defaultConfig {
applicationId "guard.proguard"
minSdkVersion 19
targetSdkVersion 23
versionCode 1
versionName "1.0"
}
}

akhil batlawala
- 1,066
- 1
- 10
- 30
-
1This answer is wrong. The manifest file does not control settings like that anymore. – Xaver Kapeller Sep 22 '15 at 09:07
-2
You control the compatibility in the manifest file.
<uses-sdk
android:minSdkVersion="15"
android:targetSdkVersion="22" />

AxxG
- 206
- 3
- 11
-
This answer is wrong. The manifest file does not control settings like that anymore. – Xaver Kapeller Sep 22 '15 at 09:08