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

  • Home
  • SEARCH
  • 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 9070431
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T17:41:17+00:00 2026-06-16T17:41:17+00:00

I have develop one android application. Here i have to pass the value from

  • 0

I have develop one android application.
Here i have to pass the value from 1st activity to third activity.

The value is passed from 1st to 2nd activity successfully developed.But i can’t pass the value from 2nd to third activity.please help me how can i develop these.please help me.

This is my 1st activity:

     Intent i = new Intent(getApplicationContext(), CustomerLogin.class);
                i.putExtra("GrandTotal", mGrandTotal);
                startActivity(i);

The 2nd activity:

Intent in = getIntent();
Bundle b = getIntent().getExtras();
String total = b.getString("GrandTotal");
TextView grandtotal = (TextView) findViewById(R.id.grand_total);
 grandtotal.setText("Welcome ," + total );

Here the value is pass from 1st to 2nd activity successfully.
Now i have to pass these value to third activity.how can i do.

Now this is my 2nd activity:

if(isUserValidated && isPasswordValidated)
{
    String s= getIntent().getStringExtra(total);
    Intent intent = new Intent(CustomerLogin.this,PayPalIntegrationActivity.class);
    intent.putExtra("GrandTotal", s);
    intent.putExtra("login",username.getText().toString());
    startActivity(intent);

}

This is my third activity:

    Bundle b = getIntent().getExtras();

    String total = b.getString("GrandTotal");
    TextView grandtotal = (TextView) findViewById(R.id.check);
    grandtotal.setText("Welcome ," + total );

Now i have to run the app means am getting the total value on 2nd activity.but am not getting the total value in 3rd activity.please help me.whats am doing wrong here.

  • 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-16T17:41:18+00:00Added an answer on June 16, 2026 at 5:41 pm
     Intent i = new Intent(getApplicationContext(), CustomerLogin.class);
     i.putExtra("GrandTotal", mGrandTotal);
     startActivity(i);
    

    The 2nd activity:

    Bundle b = getIntent().getExtras();
    String total = b.getString("GrandTotal");
    TextView grandtotal = (TextView) findViewById(R.id.grand_total);
    grandtotal.setText("Welcome ," + total );   
    
      if(isUserValidated && isPasswordValidated)  {      
          Intent intent = new Intent(CustomerLogin.this,PayPalIntegrationActivity.class);
          intent.putExtra("GrandTotal", total);
          intent.putExtra("login",username.getText().toString());
          startActivity(intent);    
        }
    

    This is my third activity:

    Bundle b = getIntent().getExtras();    
    String total = b.getString("GrandTotal");
    String name = b.getString("login");
    TextView grandtotal = (TextView) findViewById(R.id.check);
    grandtotal.setText("Welcome ," + total );
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have develop one android application. Here i have to set the tabbar bottom
I have to develop one android application. Here i have to develop grid view
I have to develop one android application.The app is performs retrieve data from mysql
Here i develop one android application and i have one image with size 197*253,
I have to develop one android send mail use javamailapi application. message.setRecipients(Message.RecipientType.TO, InternetAddress.parse(mercy.krishnaveni@gmail.com,demo@mercuryminds.com)); Using
Hi i have develop an android application in which i want to prevent user
I occur a problem when develop a application on android. There have two image
Let say that I have two Activity to develop in Android. Upon the end
i have develop one application in which i want to play gif animation. for
My colleague and I have to develop and implement an application on an Android

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.