I have a custom mime type which I am intending to use to drag and drop application objects within the app. This seems to be working but I\'m finding that the EditText fields ar
I encountered a similar issue in that I did not want a layout to accept the drop action.
Attach a drag listener to your edit field via the setOnDragListener.
edtText.setOnDragListener(new MyDragListener());
Check whether the target view in the onDrag event is your edit text.
class MyDragListener implements OnDragListener {
@Override
public boolean onDrag(View v, DragEvent event) {
switch (event.getAction()) {
case DragEvent.ACTION_DROP:
//check whether it has been dropped onto your edit text
if(v!=edtText)
//your code here
}