0

if I have some edittext in firstactivity and then I press button next to start the secondactivity .In secondActivity i have editText and button save then i press button save .I want to know a edittext in firstActivity can add with editText in secondActivity ??

Thank u stack
  • 51
  • 2
  • 9
  • 1
    you need to pass the edittext data from first activity to second activity using intent. Get the data from edittext in first activity. use intent and pass the data http://stackoverflow.com/questions/15859445/how-do-you-pass-a-string-from-one-activity-to-another/15859488#15859488. retrieve the data in second activity and use the same – Raghunandan Aug 25 '13 at 08:56
  • Can you rephrase a bit your question? – Blackbelt Aug 25 '13 at 08:59
  • Thank you every much Ranghunandan – Thank u stack Aug 25 '13 at 08:59

1 Answers1

1

Of course you can, just pass the data from the first Activity to the second when launching it. Include the data in your Intent as explained here: How do I pass data between Activities in Android application?

Community
  • 1
  • 1
fasteque
  • 4,309
  • 8
  • 38
  • 50