Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8127063
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T07:23:16+00:00 2026-06-06T07:23:16+00:00

Im developing an application where the home view will use dashboard design. I saw

  • 0

Im developing an application where the home view will use dashboard design. I saw in android design pattern that they introduce a new concept of using Up Button. Im confuse a little bit cause up button and back button is always the same except that you can use Up button to go directly in your home view. Can someone tell me how to create an Up Button in action bar sherlock? Please help. Thank you.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T07:23:19+00:00Added an answer on June 6, 2026 at 7:23 am

    If you have already implemented the action bar, you should be able to set up home button using the following code.

    This in the onCreate

    getActionBar().setHomeButtonEnabled(true);
    getActionBar().setDisplayHomeAsUpEnabled(true);
    

    This as a separate method

    public boolean onOptionsItemSelected(MenuItem item) {
        switch (item.getItemId()) {
    
            case android.R.id.home:
                // app icon in action bar clicked; go home
                Intent intentHome = new Intent(this, TargetActivity.class);
                intentHome.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
                startActivity(intentHome);
                return true;
    
            default:
                return super.onOptionsItemSelected(item);
        }
    }
    

    This should work, if it’s the same thing your trying to do.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm developing an Android Application that has three very similar Activities. I would like
I am developing a buissness-application that is essentially a Home-screen, and is supposed to
The Plan: I'm developing an android application that is heavily database driven (as in,
Heloo everyone im new to android development and im developing an android application for
Hi i am developing android application, And now i have to use sqlite database
I am developing an Android application's home screen and I am trying to lay
I am new to WPF. Currently I am developing a personal(at home) application in
I'm developing an application on two different machines (home and work) and while the
I'm developing a home security application. One thing I'd like to do is automatically
I'm developing application with GWT 2 and would like to add float panel that

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.