Uri
Uri

Reputation: 26986

Why doesn't the android SDK warn me about backward compatibility issues?

I set my minimum API version to 8, but the android SDK fails to warn me when I use functions that were added in API 14. Why is that?

<uses-sdk
    android:minSdkVersion="8"
    android:targetSdkVersion="17" />

Upvotes: 2

Views: 358

Answers (3)

Sam Dozor
Sam Dozor

Reputation: 40744

It's your minimum supported level, not minimum required. It's reasonable to want to support up to the latest API (or API 14 for example) and gracefully degrade certain features all the way down to API 8. You can include functionality from API levels higher than your minimum, and simply check the version code at run time, and go down different code paths as necessary.

Upvotes: 1

Vishesh Chandra
Vishesh Chandra

Reputation: 7071

Please check you project target,

Right click on project--> property --> android --> API 8 --> apply --> ok

Then clean and refresh the project, your problem will be solve..:)

Upvotes: 0

Ahmad
Ahmad

Reputation: 72613

Right click on your project -> Android tools -> Run Lint.
The Lint tool will warn you. It also checks for incompleteness in your strings file etc.

Upvotes: 4

Related Questions