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
  • 5,002
  • 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
  • 18,895
  • 5
  • 32
  • 63
Blaze Tama
  • 10,828
  • 13
  • 69
  • 129
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
  • 20,983
  • 15
  • 78
  • 104