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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T15:11:16+00:00 2026-05-19T15:11:16+00:00

I have Activity2 which is a TabActivity having child activities Activity3 and Activity4.Acticity2 is

  • 0

I have Activity2 which is a TabActivity having child activities Activity3 and Activity4.Acticity2 is called from Activity1.I want results from child activity(Activity3 or Activity4) in Activity2.Any help on this…?

  • 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-19T15:11:17+00:00Added an answer on May 19, 2026 at 3:11 pm
    • Use startActivityForResult instead of startActivity to start Activity3 and Activity4.
    • Use setResult in your child activity to return data to the predecessor activity
    • Use onActivityResult in your parent activity to receive the result from the child activity

    Edit: Added bundle information. Keeping original answer as it will likely be useful for others.

    Since you aren’t actually starting the activity with startActivity, you will need to store your data from the child activities, try this:

    In TabActivity:

    // putExtra is overloaded so you can add almost any kind of data.
    // First parameter is the key, second is the value
    getIntent().putExtra ( "Result", "OK" );
    

    In parent activity:

    // tabAct is the TabActivity object for your tab
    // Here, just specify the key that you used in putExtra in your TabActivity
    String actResult = tabAct.getStringExtra ( "Result" );
    if ( actResult.equals ( "OK" ) {
        // Do your actions for success
    }
    else {
        // Do your actions for failure
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an activity which is called by a few other activities. For example,
My problem is, that I have got a TabActivity, which has 4 Tabs right
Here's the problem. In my app, I have 5 tabs which contains activities. In
Having some trouble passing values from one class to another. I basically have a
I have a TV Guide activity which extends TabActivity. The tabs are labelled (example)...
I have three activities: Activity A - Displays a list of data from a
I have an Android application which has four tabs (I use a main TabActivity
In android I have an TabActivity (A) in which I create a single tab
I have a couple of tables which are used to log user activity for
Have just started using Visual Studio Professional's built-in unit testing features, which as I

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.