Whenever an activity starts, I want to make sure my EditText has focus and has the cursor inside. Basically I want to开发者_JAVA百科 make sure the keyboard is up.
In the EditText tag in your xml layout, add the tag
<requestFocus />
You may also do the programatically by calling the method. editText.requestFocus.
精彩评论