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 3874242
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T22:07:46+00:00 2026-05-19T22:07:46+00:00

I have an Android application which is a tab layout and contains 3 tabs.

  • 0

I have an Android application which is a tab layout and contains 3 tabs. There is a button in the first tab, which when clicked should go to the second tab. Also the second tab contains a back button which when clicked should go to the first tab. How to do this? Actually it should work like clicking on the tabs. Please help at the earliest.

  • 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-05-19T22:07:46+00:00Added an answer on May 19, 2026 at 10:07 pm

    TabHost’s setCurrentTab() will solve this problem, and you can deal with this in the main TabHost activity. The other activities which represent tabs can use a onclick listener on the button to interact with the setCurrentTab of the activity that contains the TabHost. I will try to post some code up if i find some time, but setCurrentTab() is what you want to use. There are probably more way to do this too, but this is what comes to mind right now.

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

Sidebar

Related Questions

In my application I have a tab bar. It contains four tabs in which
I have Android application which is Sales Rep application.When he using the app first
I am developing an android application in which i have created five tabs and
Newbee to Android development. I am developing a application, which have three different tabs.
I have an android application which contains four modules(I mean four apk's).Each module has
I have an Android application which has four tabs (I use a main TabActivity
I have a class which extends Application in an Android tabHost app. In the
I have an Android application which grabs some data from an external XML source.
I have a android application which needs username and password to login. I need
I have been developing Android application which has 3 ListView and one ContextMenu for

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.