I need to pass an array of String/integer values from one Activity to another. How do I achieve this?
Code for pass String And Integer value ::
In Your First Activity ::
Intent intent = new Intent(California.this,details.class);
Bundle bundle = new Bundle();
bundle.putString("Keyname1", StringValue);
bundle.putInt("Keyname2", IntegerValue);
intent.putExtras(bundle);
startActivity(intent);
In Second Activity :
Bundle b=this.getIntent().getExtras();
String s=b.getString("Keyname1");
int i=b.getInt("Keyname2");