Android: show soft keyboard automatically when focus is on an EditText

I’m showing an input box using AlertDialog. The EditText inside the dialog itself is automatically focused when I call AlertDialog.show(), but the soft keyboard is not automatically shown. How do I make the soft keyboard automatically show when the dialog is shown? (and there is no physical/hardware keyboard). Similar to how when I press the … Read more

How to show soft-keyboard when edittext is focused

I want to automatically show the soft-keyboard when an EditText is focused (if the device does not have a physical keyboard) and I have two problems: When my Activity is displayed, my EditText is focused but the keyboard is not displayed, I need to click again on it to show the keyboard (it should be … Read more

Allow multi-line in EditText view in Android?

How to allow multi-line in Android’s EditText view? 15 s 15 By default all the EditText widgets in Android are multi-lined. Here is some sample code: <EditText android:inputType=”textMultiLine” <!– Multiline input –> android:lines=”8″ <!– Total Lines prior display –> android:minLines=”6″ <!– Minimum lines –> android:gravity=”top|start” <!– Cursor Position –> android:maxLines=”10″ <!– Maximum Lines –> android:layout_height=”wrap_content” … Read more