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:
- using static map query, but it's need billing and i need to pay for google after 100k request.
- 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