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
startActivityForResult()
File : AndroidManifest.xml
Add following property :
android:windowSoftInputMode="stateVisible"
Which worked for me.