imm = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE);
if(imm.isActive()){
imm.hideSoftInputFromWindow(PlayMusicActivity.this.getCurrentFocus().getWindowToken(), 0);
}
imm = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE);
if(imm.isActive()){
imm.hideSoftInputFromWindow(PlayMusicActivity.this.getCurrentFocus().getWindowToken(), 0);
}