0

Im creating a simple app which is for example i got 10 table row with check box and user click on 3 box and press next, i wan to print out only the 3 row the use clicked and adding extra button/icon beside it. Is it possible? please help ! Thank you !

Glynn Neo
  • 33
  • 9

3 Answers3

0

to pass data to another Activity you can use Intents and putting your data as extra :

here is a sample :

Intent intent = new Intent(this, SecondActivity.class);
intent.putExtra("data", "My data in second activity");
startActivity(intent);

and for retrieving data in SecondActivity :

String data = getIntent().getStringExtra("data");
Mohammad Rahchamani
  • 4,696
  • 1
  • 26
  • 36
0

Yes, use putExtra and pass an ArrayList of String:

Intent intent = new Intent(Recipes2.this, XMLParser.class);
intent.putStringArrayListExtra("myList", (ArrayList<String>) myList);
startActivity(intent);    
Piyush
  • 24,288
  • 6
  • 40
  • 72
Blaze Tama
  • 10,517
  • 11
  • 65
  • 125
0

Here is the answer:

Intent intent = new Intent(getBaseContext(), SignoutActivity.class);
intent.putExtra("EXTRA_SESSION_ID", sessionId);
startActivity(intent)

For more information check this link.

Vikasdeep Singh
  • 19,490
  • 9
  • 75
  • 99