Code example for InputMethodManager

Methods: toggleSoftInput

	public void keyboard(View view) {
		// open/close keyboard when click button 
		InputMethodManager imm = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE);
		imm.toggleSoftInput(InputMethodManager.SHOW_FORCED, 0);
	public void back(View view) {
	public void initializeHeader() { 
		TextView title = (TextView) findViewById(;
		title.setText("Champion List");
		// if grid view, change button to display list view 
		if (viewType.equals("grid")) {
			Button changeView = (Button) findViewById(;
Stop searching for code, let great code find you!  Add Codota to your java IDE