how keep keyboard after a dialog dismiss when ok button pressed ? in android -
keypad showing in screen . , show dialog . when clicked ok button in dialog, keypad hide.
public void setbutton(~) { dialog.dismiss(); }
i think dismiss() include problem.
how keep keypad after dialog closed?
ok..add after dialog.dismiss();
inputmethodmanager mgr = (inputmethodmanager) getsystemservice(context.input_method_service); mgr.showsoftinput(edittext, inputmethodmanager.show_implicit);
here, edittext edittext instance. change accordingly.
add activity
tag in androidmanifest.xml
android:windowsoftinputmode="statealwaysvisible"
Comments
Post a Comment