I have this dialog in my application
public void alertaLocalizar(View v) {
LayoutInflater inflater = (LayoutInflater) getSystemService(Context.LAYOUT_INFLATER_SERVICE);
View view = inflater.inflate(R.layout.alerta_comum, null);
Dialog localizar = new Dialog(this);
localizar.requestWindowFeature(Window.FEATURE_NO_TITLE);
localizar.setContentView(view);
localizar.show();
}
}
And I wanted to force the keyboard to open as soon as it was opened, how can I do that?
And taking advantage of the question, I would like to know how to use the OK button on the keyboard to have the same effect as the OK button on the alert and not close the keyboard.