Code example for Intent

Methods: putExtras

0
	protected void openActivity(Class<?> pClass) {
		openActivity(pClass, null);
	} 
 
	protected void openActivity(Class<?> pClass, Bundle pBundle) {
		Intent intent = new Intent(this, pClass);
		if (pBundle != null) {
			intent.putExtras(pBundle);
		} 
		startActivity(intent);
	} 
 
	protected void openActivity(String pAction) {
		openActivity(pAction, null);
	} 
 
	protected void openActivity(String pAction, Bundle pBundle) {
		Intent intent = new Intent(pAction);
		if (pBundle != null) {
			intent.putExtras(pBundle);
		}