I\'m having trouble with the on screen keyboard. I have an activity with an EditText
which shows the keyboard, and a button to go to a second activity. The second a
If In Fragment Class
@Override
public void onResume()
{
getActivity().getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_HIDDEN);
super.onResume();
}
If In Activity Class
@Override
public void onResume()
{
this.getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_HIDDEN);
super.onResume();
FetchLocation fl = new FetchLocation(mContext, locationResult);
}