actually i am displaying a pop up with ok cancel button when user clicks on edit text.
My problem is when ever user double clicks on edit text two pop up comes. so if user has selected any value from pop up its second pop up still remain there.
I don’t know how to deal with it.
Any help will appreciated. thanks in advance.
This is my layout
<EditText
android:id="@+id/date_control"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:background="@drawable/bg_edit_text"
android:focusableInTouchMode="false"
android:inputType="none"
android:editable="false"
android:clickable="true"
android:layout_marginRight="5dp" />
My java class calling the controller
datePicker = (EditText) findView(R.id.date_control);
datePicker.setOnClickListener(myControllerClass);
its controller
MyDialog myDialog = new myDialog(activity, "Select Date",
date, DateTimeDialog.DATE_PICKER);
myDialog.show();
If you keep a field reference to your dialog you could check to see if its already showing