1
If you are in the oncreate the code below.
getSupportActionBar().setDisplayHomeAsUpEnabled(true);
You should also take Parentacivity on androidmanifest.xml. ex:
<activity
android:name=".activity.Telefones"
android:label="@string/title_activity_mostrar_telefones"
android:parentActivityName=".activity.ListaTelefones">
<meta-data
android:name="android.support.PARENT_ACTIVITY"
android:value="br.com.dtec.listatelefonica2.activity.ListaTelefones" />
</activity>
Let alone:
<activity
android:name=".activity.MostrarTelefones"
android:label="@string/title_activity_mostrar_telefones"
>
</activity>
Apart from these codes Up Navigation will come out
Very good, that’s exactly what I needed.
– Raphael de souza