0

I am using android PlacePicker ui widget in my app. I am able to get the coordinates of selected location. My requirement is also to take screenshot of the selected location. There is no api in PlacePicket widget for screeenshot but GoogleMap api does provide the interface for taking screenshot. My question is do I have to implement PlacePicker widget like ui just for taking screenshots ?.

1 Answers1

0

I think you can achieve this screenshot without using the Place Picker in the Google Places API for Android. What you can use is the GoogleMap.SnapshotReadyCallback.

From this SO question, to take a screenshot, implement this line

public abstract void onSnapshotReady (Bitmap snapshot)

and call

public final void snapshot (GoogleMap.SnapshotReadyCallback callback)

For more information, and the sample code, just check the linked SO question.

To know more about Place Picker, check this link.

Community
  • 1
  • 1
KENdi
  • 7,576
  • 2
  • 16
  • 31