Code example for View

Methods: getWindowToken

0
	} 
 
	protected void hideKeyboard(View view) {
		InputMethodManager imm = (InputMethodManager) this
				.getSystemService(Context.INPUT_METHOD_SERVICE);
		imm.hideSoftInputFromWindow(view.getWindowToken(),
				InputMethodManager.HIDE_NOT_ALWAYS);
	} 
 
	protected void handleOutmemoryError() { 
		runOnUiThread(new Runnable() {
			@Override 
			public void run() { 
				Toast.makeText(BaseActivity.this, "内存空间不足!", Toast.LENGTH_SHORT)
						.show();
				// finish(); 
			} 
		}); 
	} 
 
	private int network_err_count = 0;