I want a simple thing. When the user puts his address in the box I want that in the 2nd activity, after I press "show address" it will open google map with the user input address and not "geo" address
public void onClick(View v) {
if (btSand == v) {
AdressLoc = etAdress.getText().toString();
SendMail = etMail.getText().toString();
Intent intent = new Intent(MainActivity.this, Main2Activity2.class);
intent.putExtra("name",etName.getText().toString());
intent.putExtra("Mail",etMail.getText().toString());
startActivity(intent);
}
}
else if (btnAdress == v) {
Intent intent = new Intent(Intent.ACTION_VIEW);
intent.setData(Uri.parse("geo:31.59,34.55"));
Intent chooser = Intent.createChooser(intent,"Launch Map");
startActivity(chooser);
}