Android App Development
iOS App Development
Flutter App Development
Cross Platform App Development
Hire on-demand project developers and turn your idea into working reality.
Big thanks to Webkul and his team for helping get Opencart 3.0.3.7 release ready!
Deniel Kerr
Founder. Opencart
Top Partners
The action bar home up button is the button on extreme left of action bar. Its functionality is to navigate the app to the parent activity. The functionality can be achieved by two ways.
Method 1: By adding it in Android Manifest
In the activity’s <activity> tag of Android Manifest file add the tag. For example I have two activities, activity1 and activity2. And i want to go to activity1 on click of activity2’s home up button then my Android Manifest file will be like
Method 2: By adding check in onOptionsItemSelected()
You can also implement a check on Home up button ID in onOptionsItemSelected() method as
Both methods works well but if you want to give the home up button the functionality of back press then go for second method else you can use whatever suits you.
Your email address will not be published. Required fields are marked*
Name*
Email*
Save my name email and website in this browser for the next time I comment.
Be the first to comment.
We use cookies to personalize your experience. By continuing to visit this website you agree to our use of cookies. Learn more about privacy policy
Webkul is a truly trusted and supported IT Company to develop business ideas for e-commerce. They provide professional support after deploying the solution to production and be responsible to act for fixing the reported issues or system errors. We highly encourage to deal with Webkul for business development.
Hussein Zawia
Co-founder, 24Dokan
USA
India
Global
Name
Email
Enquiry or Requirement
If you have more details or questions, you can reply to the received confirmation email.