0

I was testing my app that has an edit text on my phone and worked fine. However, once I connected to another device which is running android 5.1 I believe, the app is not letting me type anything on the edit text. Is there anyway to fix this?

leonardo
  • 93
  • 2
  • 10

2 Answers2

1

try putting this in your onCreate

editText.requestFocus();

visit this question for more answers

Community
  • 1
  • 1
derfect
  • 622
  • 2
  • 6
  • 14
  • did you put after initializing your editText? also replace "editText" with the name of your edit text.. – derfect Aug 16 '15 at 00:06
1

Check to see that you have a reasonable value in your Manifest for the activity android:windowSoftInputMode. For instance try stateVisible.

Victory
  • 5,811
  • 2
  • 26
  • 45