I am new to java and android.I am following and making app from here for drag and drop.
the following files are giving error of cannot be resolved.
import android.view.View.DragShadowBuilder;
import android.view.View.OnDragListener;
import android.view.DragEvent;
import android.content.ClipData;
I know that means the above mentioned classes are not present in main library. how should i add them or is there alternate way of doing drag and drop(please explain with give examples).
Right click on your projects –> properties –> android —-> set target 4.0
Refer this links,
http://www.edumobile.org/android/android-beginner-tutorials/drag-and-drop-ui-element/
http://techdroid.kbeanie.com/2010/04/simple-drag-n-drop-on-android.html