android - How to automatically pop-up keyboard? -


i have edit text field have input password, have push field. how automatically pop-up keyboard without touching edit text?

there edit text xml field:

<edittext android:id="@+id/editpasswd" android:focusable="true" android:focusableintouchmode="true" android:layout_width="fill_parent" android:layout_height="wrap_content" android:inputtype="phone" android:password="true"/> 

use code in point want display keyboard (may in ocreate?)

    edittext myedittext = (edittext) findviewbyid(r.id.editpasswd);      ((inputmethodmanager)getsystemservice(context.input_method_service))         .showsoftinput(myedittext, inputmethodmanager.show_forced); 

Comments

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -