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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T07:22:32+00:00 2026-06-15T07:22:32+00:00

How can I receive values from 2 Activities , (passing data)? I have 3

  • 0

How can I receive values from 2 Activities, (passing data)?

I have 3 Activity, ActivityOne, ActivityTwo, ActivityThree. I want to send value(passing data) from ActivityOne to ActivityThree, and ActivityTwo to ActivityThree.

All data in ActivityThree not be destroy, so all value data from ActivityOne and ActivityTwo any in ActivityThree. Data from ActivityOne save temporary variable in ActivityThree and data from ActivityTwo save temporary variable in ActivityThree too. So I can show all values data from ActivityOne and ActivityTwo in ActivityThree together,

Can I make SharedPreferences? If yes, can any one provide an example?

  • 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-15T07:22:34+00:00Added an answer on June 15, 2026 at 7:22 am

    Using SharedPreferences is not a bad Idea but your requirement is temporary. So better you use Bundle Extras. Take Bundle object and pass all your first activity variables to Second Activity through bundle. Retrieve the bundle from the intent and put the second activity variables in the same bundle and pass the same to Third Activity. Retrieve the Bundle in Third Activity and use them. I hope this will help you.

    Bundle b = new Bundle();
    b.putString("name","value");
    b.putInt("name1",9);
    Intent i = new Intent(FirstActivity.this, SecondActivity.class);
    i.putExtras("bundle",b);
    startActivity(i);
    

    retrieving in second activity

    Bundle b = getIntent().getBundleExtra("bundle"):
    b.putString("namein2",value);
    b.putInt("nameIntin2",8);
    Intent i = new Intent(SecondActivity.this,ThirdActivity.class);
    i.putExtras("bundle",b);
    startActivity(i);
    

    Retrieve the bundle and use it in Third Activity

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

Sidebar

Related Questions

I want to block few mobile numbers from my application. I mean can receive
I can successfully receive email from SendGrid and process its data. My problem is
I can successfully receive values from my web service so in that repect the
Can Automapper map values from a NameValueCollection onto an object, where target.Foo receives the
How can I receive a string value, find an Entity with the same name
I want to make an app that can receive broadcast when other apps on
How can I receive TouchesBegan from a UITableViewCell in a UITableViewController so I can
I have a WF service that I'm trying to setup receive activities to Subscribe
(Q1)Hi I'm using textbox in my project and I can't receive the values that
I am trying to receive data using serial communication in Python, which I can

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.