Show soft keyboard when Activity starts

前端 未结 10 593
梦毁少年i
梦毁少年i 2020-12-13 08:28

I have 2 activities, A and B. When A starts, it checks for a condition and if true, it calls startActivityForResult() to start B. B only takes text input so it

10条回答
  •  悲&欢浪女
    2020-12-13 08:37

    File : AndroidManifest.xml

    
    

    Add following property :

    android:windowSoftInputMode="stateVisible"
    

    Which worked for me.

提交回复
热议问题