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

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -