0

I have just get the data from another activity using the following code,

Intent intent = getIntent();
Bundle data = intent.getExtras();
String LnAmt = data.getString("Amount");
String IntRate = data.getString("Rate");
String LnPrd = data.getString("Period");

I want to print these data in table using for loop. But i don't understand how to print. Please help me to print those value in table.

K.Os
  • 5,123
  • 8
  • 40
  • 95
  • 2
    for loops works for an array. So how would you loop for displaying it. The above are String Values. – Chandan kushwaha Oct 05 '17 at 04:15
  • Do you want to print it in tableLayout or in list if you want to display it inside the tableLayout so here is the example https://www.tutorialspoint.com/android/android_table_layout.htm – Shubham Jain Oct 05 '17 at 04:15
  • try this https://stackoverflow.com/questions/5968896/listing-all-extras-of-an-intent – D.J Oct 05 '17 at 04:16
  • Question is confusing it seems , you can loop through the List/Array or other structures but you are passing String data through intent which is linear, If you have List/Array to represent in a tabular form than you can have a table layout to represent or a RecyclerView. – Jitesh Upadhyay Oct 05 '17 at 04:59

0 Answers0