0

i have to build a chat app with location image, i need to capture snapshot from location and display as ImageView in to recyclerView cell.

So i dont need to load a mapView, only want to get snapshot.

I have 2 ways:

  1. using static map query, but it's need billing and i need to pay for google after 100k request.
  2. using GoogleMap.SnapshotReadyCallback, but it's need a mapView object.
//this method were describe from a LocationCell
GoogleMap.SnapshotReadyCallback callback = snapshot -> {
                   try {
                       location.setSnapshot(snapshot);
                       image.setImageBitmap(snapshot);
                   } catch (Exception e) {
                       e.printStackTrace();
                   }
               };

Can someone guide me how to solved this? Thanks

famfamfam
  • 200
  • 2
  • 4
  • 20

0 Answers0