I have changed from toggleSoftInput to showSoftInput but no use
public void onClick(View v) {
Toast.makeText(MainActivity.this,"Button Clicked",Toast.LENGTH_LONG).show();
InputMethodManager imm = (InputMethodManager) getSystemService(MainActivity.INPUT_METHOD_SERVICE);
imm.toggleSoftInput(InputMethodManager.SHOW_FORCED, 0);
}