In Activity you have to use this
to accses to context, cursor..etc
but in fragment we use getActivity()
instead.
More Related Contents:
- How to show multiple markers on MapFragment in Google Map API v2?
- Adding multiple markers in Google Maps API v2 Android
- Map Markers with text in Google Maps Android API v2
- How to get screen coordinates from marker in google maps v2 android
- Add Marker on Android Google Map via touch or tap
- Display toolbar for Google Maps marker automatically
- How can I show current location on a Google Map on Android Marshmallow?
- Google Maps Android API v2 – Interactive InfoWindow (like in original android google maps)
- How can I find the latitude and longitude from address?
- GoogleService failed to initialize
- Google Maps Android API v2 – detect touch on map
- Replace getMap with getMapAsync
- LogCat message: The Google Play services resources were not found. Check your project configuration to ensure that the resources are included
- getLastKnownLocation returns null
- Android map v2 zoom to show all the markers
- Android: automatically choose debug/release Maps api key?
- How to handle onTouch event for map in Google Map API v2?
- How to get My Location changed event with Google Maps android API v2?
- Android Google maps java.lang.NoClassDefFoundError: Failed resolution of: Lorg/apache/http/ProtocolVersion
- how to set google map fragment inside scroll view
- How to animate marker in android map api V2?
- Android Google Maps API V2 Zoom to Current Location
- Using the “animated circle” in an ImageView while loading stuff
- Dynamic contents in Maps V2 InfoWindow
- MarkerClick works but InfoWindowClick does not open ViewModel
- First launch of Activity with Google Maps is very slow
- Android “Hello, MapView” Tutorial – Map Tiles Do Not Load
- Setting a LongClickListener on a map Marker
- Add an Image from url into custom InfoWindow google maps v2
- Show popup above map marker in MapView