The @JavascriptInterface annotation works on api 17 and above. For my project the annotation cannot be found as my target api is set to 13:
and in my manifest the min sdk is 11:
<uses-sdk
android:minSdkVersion="11"
android:targetSdkVersion="18" />
Why do I have to go into the project build target (e.g., Project > Properties > Android in Eclipse) and change it to API 17+ as a resolution. Now I have to build against that SDK when all I really want to do is ignore the annotation on anything below API 17. Is there anyway I can do that? I dont like the idea of building against api 17 and then later finding out I have code that wont run on prior releases. My goal is to ensure my app can run on api 13 to 18. If commonsWare is around maybe he can suggest something I'm missing...