HDTutorial
EN

Playback starts YouTube’s embedded player (privacy-enhanced mode).

How to add Android Back Button / Up Button in Activity ActionBar

126,661 views October 25, 2019 2:34

Watch on YouTube
ChannelLemubit Academy

Description from the creator

You would learn how to add the Android Up/Back button in the activity toolbar to navigate back to previous parent activity. To do this you have to declare the parent activity of the current Activity in the Android App Application Manifest. But first, we would get the SupportActionBar and setDisplayHomeAsUpEnabled as true.

#LemubitAcademy

About this tutorial

Lemubit Academy published this 2:34 video tutorial on October 25, 2019. It has been watched 126,661 times on YouTube.

Duration
2:34
Published
October 25, 2019
Views
126,661
Likes
1,128

Tags

Share

Further reading

  • Add an up action | Android Developers developer.android.com

    One simple way to do this is to provide an Up button on the app bar for all activities except the main one. When the user selects the Up button, the app navigates to the parent activity. This lesson shows you how to add…

  • android - Add a button to the top right of action bar - Stack ... stackoverflow.com

    @Override public boolean onOptionsItemSelected(MenuItem item) { // Handle action bar item clicks here. The action bar will // automatically handle clicks on the Home/Up button, so long // as you specify a parent activit…

  • How to add a listener for the up button in ActionBar on Android? stackoverflow.com

    I added the up button in the action bar of my android activity in this way: Activity: getSupportActionBar().setDisplayHomeAsUpEnabled(true); Manifest: android:parentActivityName=".MenuActivity"> It work fine but now i w…

This tutorial in other languages