Code example for ActionBarActivity

Methods: onOptionsItemSelected

0
		case android.R.id.home:
			finish(); 
			return true; 
 
		default: 
			return super.onOptionsItemSelected(item);
		} 
	} 
 
	@Override 
	public void onPageScrollStateChanged(int state) {
	} 
 
	@Override 
	public void onPageScrolled(int position,
	                           float positionOffset,
	                           int positionOffsetPixels) {
	} 
 
	@Override 
	public void onPageSelected(int position) {