i have to transfer more then one string from one activity to another activity in android , i already know how to transfer one string from one to another string in android but for more then one string i can not found ways my code is here ,
if (long_insert_row_index>0){
//Spinner spDepCMPName = (Spinner) findViewById(R.id.spDepCMPName);
// String strCMP= spDepCMPName.getSelectedItem().toString();
//String strCMP=depositecmpname;
//startActivity(new Intent(DepositActivity.this, AuditPointDetailsActivity.class).putExtra("insert_row_index",""+long_insert_row_index).putExtra("segment_name", spinner_segment.getSelectedItem().toString()).putExtra("audit_type_name", spinner_audit_type.getSelectedItem().toString()).putExtra("audit_type_id", audit_type_id).putExtra("segment_id", segment_id));
///please see commented section at bottom
startActivity(new Intent(DepositActivity.this, DepositeNextActivity.class)
.putExtra("insert_row_index",""+long_insert_row_index)
.putExtra("CMPName", depositecmpname));
}else {
Toast.makeText(DepositActivity.this,"Error while inserting data.Please re-enter data.",Toast.LENGTH_LONG).show();
}
}
Now i want to send both string from one activity to another , i dont know how to do that one .