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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T12:43:25+00:00 2026-06-15T12:43:25+00:00

I am building a tab interface using Action bar and fragment. I would need

  • 0

I am building a tab interface using Action bar and fragment. I would need assistance in sending data from container activity to the fragment.

To elaborate, I have job object in container activty. And I have created few tabs based on the information in job object (like company details, experience details etc). I need to pass the job object to these fragments so that it can display respective information.

I have created container activity and tab fragments. I would need an example on how to pass the object across them. I cannot use intent.putExtra. Can I access parent container’s object from fragment?

Any help shall be appreciated.

Thanks.

  • 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-15T12:43:26+00:00Added an answer on June 15, 2026 at 12:43 pm

    Make the method in your activity, e.g getJob that will return the Job object and its information

    MyActivity extends Activity{
    Job mJob;
    
    public Job getJob(){
       return this.mJob;
     }
    }
    

    then in your Fragment you do this:

    MyFragment extends Fragment{
    
    @Override
    public void onActivityCreated(){
      super.onActivityCreated();
      ((MyActivity)this.getActivity()).getJob();
     }
    }
    

    use getActivity and the method getJob(); to get the object

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

Sidebar

Related Questions

I am well into building a Core Data tab-based iPad application. I am passing
In building my application which is a tab based application, from the first tab,
I'm using RoboGuice+SherlockActionBar-V4.0 and building a sample app to test tab-navigation , I checked
I am building chrome extension i need to detect the current loading tab id's
I am building a Facebook tab page and would like to have a link
I am building a composite application using CAL/Prism. The main region is a tab
I'm building a tab bar application in which there are three tabs, each of
I'm building a Tab Bar app, pretty all GUI modeling is done with IB.
I am building a tab bar app one of the tabs has an image
I am building a Tab Bar App and have a MapView set up on

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.