Code example for ActionBarActivity

Methods: getSupportActionBar

0
		cargarListaAnunciosCercanos(false); 
		setupActionBar(); 
	} 
	 
	private void setupActionBar() { 
        ActionBar actionBar = getSupportActionBar();
        actionBar.setDisplayHomeAsUpEnabled(true);
    } 
	 
	@Override 
    public boolean onOptionsItemSelected(MenuItem item) {
        switch (item.getItemId()) {
        case android.R.id.home:
            NavUtils.navigateUpFromSameTask(this);
            return true; 
        } 
        return super.onOptionsItemSelected(item);
    } 
 
	private void cargarListaAnunciosCercanos(boolean notifyDataSetChanged) {
Connect your IDE to all the code out there  Get Codota for Java