I’m using DragShadowBuilder in my application. http://developer.android.com/reference/android/view/View.DragShadowBuilder.html
In AndroidManifest, I’ve set the minimum supported API level to 8. However, DragShadowBuilder was introduced with API 11. Eclipse usually warns me when something is below the minimum API level, but it seems fine with me using DragShadowBuilder. Should I be included some support library or something along those lines to ensure that the code runs on older versions of Android?
I believe this is a bug with Eclipse. I would suggest that you simply make the minimum supported API level to 11. AFAIK, you could always create it to support API 11 first, and then try to recreate it with a new project and by adding the library you want.
I have tried this and if you were to create a new project, set it to a lower API, import a “Drag and Drop” like library, and try to write the code for it, you will most likely get an error saying that it won’t work and/or that the Drag and Drop function is set for API’s 11. If you Clean the project after, the error might “disappear” go away but once you try to run the application, it will reappear and say that it can’t run with errors.
It is weird even though you have the library embedded with the code. Perhaps you could try renaming the classes and such if the machine can not differentiate which “DragEvent” you are trying to call forth.