-2

I am new to programming and i want to know how to send data (dual coordinates) from my map activity to another activity. I tried the conventional method but it only works when I send data from the activity to another activity and not from my fragmentmaps activity to another activity.

Manish Karena
  • 724
  • 6
  • 29
Hope123
  • 3
  • 1

1 Answers1

0

A map fragment is implemented in the activity only. So, normal activity intent will work here.

Intent intent = new Intent(YourMapActivity.this, NextActiity.class);
intent.putExtra("Latitude", latitude);
intent.putExtra("Longitude", longitude);
startActivity(intent);
Raj
  • 2,997
  • 2
  • 12
  • 30