Code example for InputMethodManager

Methods: toggleSoftInput

0
		WakeLock wl = pm.newWakeLock(pm.FULL_WAKE_LOCK, "Sandboc lock");
		wl.acquire();
		 
		// Show keyboard: 
		InputMethodManager imm = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE);
		imm.toggleSoftInput(InputMethodManager.SHOW_FORCED,0);
		 
		 
		// Acquire the surface holder: 
		srv = new SurfaceRenderView(context);
		 
		setContentView(srv);
	} 
	@Override 
	protected void onPause() { 
		// TODO Auto-generated method stub 
		super.onPause(); 
		//wl.release(); 
		srv.pause();
	} 
	@Override