I suggest you create a variable which contains all the information.
Then use
Intent i = new Intent(getApplicationContext(), NewActivity.class);
i.putExtra("new_variable_name","value");
startActivity(i);
Then in the new Activity, retrieve those values:
Bundle extras = getIntent().getExtras();
if (extras != null) {
String value = extras.getString("new_variable_name");
}
i found the answer here
EDIT :
it also works with double doubleVal1 & 2 being your variables
Intent yourIntent = new Intent(thisActivity.this, nextActivity.class);
Bundle b = new Bundle();
b.putDouble("latitude", doubleVal1);
b.putDouble("longitude", doubleVal2);
yourIntent.putExtras(b);
startActivity(yourIntent);
Then, get it in your next Activity:
Bundle b = getIntent().getExtras();
double mLatitude = b.getDouble("latitude");
double mLongitude =b.getDouble("longitude);"`
it cames from this question pass double values in intent