Code example for ActionBarActivity

Methods: startActivity

0
	public boolean onOptionsItemSelected(MenuItem menuItem) {
		switch (menuItem.getItemId()) {
		case android.R.id.home:
			Intent homeIntent = new Intent(this, Putio.class);
			homeIntent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
			startActivity(homeIntent);
			return true; 
		} 
		return (super.onOptionsItemSelected(menuItem));
	} 
} 
Contextual code suggestions in your IDE  Get Codota for Java