i'm trying to pop up the alertdialog in inputmethodservice i've a edit text in the alertdialog it's popping out properly but nothing happens on the edit text focus please help me
`AlertDialog.Builder builder = new AlertDialog.Builder(this);
builder.setTitle("Make your selection");
input = new EditText(this);
input.setId(1);
input.requestFocus();
builder.setView(input);
AlertDialog alert = builder.create();
Window window = alert.getWindow();
WindowManager.LayoutParams lp = window.getAttributes();
lp.token = mInputView.getWindowToken();
lp.type = WindowManager.LayoutParams.TYPE_APPLICATION_ATTACHED_DIALOG;
window.setAttributes(lp);
window.addFlags(WindowManager.LayoutParams.FLAG_ALT_FOCUSABLE_IM);
alert.show();
}`
Is there something i'm missing?