Code example for FragmentActivity

Methods: getSystemService

0
			startActivity(intent);
		} 
	} 
 
	private void hideKeyboard() { 
		InputMethodManager imm = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE);
		imm.hideSoftInputFromWindow(auto.getWindowToken(), 0);
	} 
 
	@Override 
	public boolean onTouchEvent(MotionEvent event) {
		// TODO Auto-generated method stub 
		hideKeyboard(); 
		return super.onTouchEvent(event);
	} 
 
	@Override 
	public void afterTextChanged(Editable s) {
		// TODO Auto-generated method stub 
		tex = s.toString();
	}