softkeypad is poping up automatically when i press a button...i have tried following code to stop poping up the softkeypad but in vain...following is the code that i have tried :
public void hideKeyboard(View view) {
InputMethodManager inputMethodManager = (InputMethodManager) getSystemService(Airport.INPUT_METHOD_SERVICE);
inputMethodManager.hideSoftInputFromWindow(view.getWindowToken(), 0);
}
even in manifest file i have done the following:
android:windowSoftInputMode="stateHidden"
but surprisingly i haven't used any edittext...but also this softkeypad is poping up....can anyone plz answer this....its an emergency...thank u in advanced