Кнопка бокала Android Android
ActionBar actionBar = getActionBar();
actionBar.setHomeButtonEnabled(true);
Stormy Sloth
ActionBar actionBar = getActionBar();
actionBar.setHomeButtonEnabled(true);
getSupportActionBar().setDisplayHomeAsUpEnabled(true);
case android.R.id.home:
this.finish();
return true;
<activity
android:name=".DetailActivity"
android:label="@string/title_activity_detail"
android:parentActivityName=".MainActivity">
<meta-data
android:name="android.support.PARENT_ACTIVITY"
android:value="com.example.MainActivity"/>
</activity>