Such a question is how to do Share location correctly in messengers, namely, how then to display it in the chat feed. For example in WhatsApp it looks like this:

enter image description here

As far as I understand, the coordinates are sent from one user to another, and then how to display the map correctly in the chat window? Should it be a SupportMapFragment ?

  • Is it possible to give some explanations?) You click on the marker, where the dialog box with the share button is displayed and you can already share it on social networks, not just with coordinates, but with a piece of map? - Morozov
  • @Morozov As in WhatsApp, you get your coordinates, send them to another user and from another user when you click on the map, the map opens with a marker. - Lucky_girl

1 answer 1

There are libraries that, for given coordinates, return a picture of the terrain with a given approximation. In this case, you can simply display the picture, and when you click on it, you can already open the map.

For example - 'com.github.renaudcerrato: static-maps-api: 1.0.2'