I want to open soft keyboard while starting an activity.
The activity contains nothing as its element. I just need to open soft keyboard on the launch.
I've tried with
<activity android:windowSoftInputMode="stateAlwaysVisible|stateVisible|adjustResize"
but it didn't work.
Also tried with
getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_VISIBLE);
but it didn't work as well
i'm using emulator to run the code
Thanks in advance