Can anyone tell me how to show the soft input keyboard while a activity opens.
In Normal case a keyboard pops up when we tap inside the edit text but i want to open it automatically when that screen loads.
here is the xml layout file
and here is the main.xml layout file
<TextView android:id="@+id/TextView01" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:text="This is my sample App of android"
android:textColor="#000000" android:textSize="20dip">
</TextView>
<EditText android:id="@+id/EditText01" android:layout_height="wrap_content"
android:layout_width="fill_parent"></EditText>
<Button android:id="@+id/Button01" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:text="Say Hello"></Button>
Check
android:windowSoftInputModeattribute foractivityelement of AndroidManifest.xml. In your case it could be: