I write a fragment and set let android:windowSoftInputMode in the androidmanifest.xml as default. But the Activity who uses it set its android:windowSoftInputMode as stateHidden|adjustResize, so the soft keyboard will not dismiss as supposed, but the host activity would not like to change their attribute. I try to use
((Activity)sContext).getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_VISIBLE);
but it does not work. I think fragment does not have the permission to change this attribute of activity, right? Can I use default value in my fragment and does not effect others in the activity?