Questions tagged [google-maps-android-api-2]

Google Android Maps Api v2 is the next generation of Google Maps SDK available for Android developers.

Related tags:

Useful links:

3484 questions
42
votes
5 answers

How to get current Location in GoogleMap using FusedLocationProviderClient

I want to get periodic (say every 2 minutes) current location updates for this I'm following official documentation, I wrote this code but its not giving current location updates every two minutes even specified in LocationRequest object that I'm…
blackHawk
  • 6,047
  • 13
  • 57
  • 100
42
votes
1 answer

Opening InfoWindow automatically when adding marker Google Maps v2 Android

Is there a way to open the infowindow automatically when we add a marker? Using this code to add the marker but infowindow only opens when clicking the marker: myMap.addMarker(new MarkerOptions() .position(latLng) …
bond
  • 716
  • 1
  • 8
  • 21
41
votes
5 answers

Android app is crashing due to V/GoogleSignatureVerifier: Signature not valid

I have an android app in which I am using Google Maps API for Android v2. It was working fine in my phone until I upgraded my phone to Marshmallow. After updating my phone once I uninstalled it and again installed it using Android Studio it started…
41
votes
5 answers

Android map marker color?

What color is available to make a marker on Android map? How many colors are there and how to write the code of color?
kucluk
  • 540
  • 2
  • 9
  • 29
40
votes
4 answers

Animating markers on Google Maps v2

What is the best way to animate markers on Google Maps using v2 API? I am working on a map-centered game where I track locations of people and display them on the map for each other to see. As people move, I want to animate a marker from his current…
39
votes
4 answers

Replace getMap with getMapAsync

I want to replace the deprecated getMap Method with getMapAsync, but I didn't use MapFragment but GoogleMap like this: private GoogleMap googleMap; @Override protected void onCreate(Bundle savedInstanceState) { …
maidi
  • 3,219
  • 6
  • 27
  • 55
39
votes
4 answers

How to update TileOverlay without a flicker?

I have some dynamic tile content to display on top of a map (specifically, weather images -- radar, satellite, temperatures, etc.). I'm using Google Maps API for Android v2. The problem I'm having is that apparently the only way to update the tile…
erickj00001
  • 590
  • 4
  • 8
38
votes
8 answers

Check if a latitude and longitude is within a circle

See this illustration: What I would like to know is: How to create an area (circle) when given a latitude and longitude and the distance (10 kilometers) How to check (calculate) if a latitude and longitude is either inside or outside the area I…
Peter Warbo
  • 11,136
  • 14
  • 98
  • 193
38
votes
3 answers

android java.io.IOException: Service not Available

Description: I am using Google maps API V2.I have implemented Android Reverse Geocoding at touched location. Problem: It throws exception on try { addresses = geocoder.getFromLocation(latitude, longitude,1);} catch (IOException e) { …
TheFlash
  • 5,997
  • 4
  • 41
  • 46
37
votes
4 answers

GooglePlayServicesUtil.getErrorDialog is null

I'm using ACRA (arca.ch) to generate automatic error reports. I just released a new version of my app using Google Maps Android API v2. I'm getting an error reported by EEEPad and Transformer Pad users when trying to show the dialog returned by…
DiscDev
  • 38,652
  • 20
  • 117
  • 133
37
votes
3 answers

Android Maps API requires openGL es 2

The Maps v2 documentation states: Because version 2 of the Google Maps Android API requires OpenGL ES version 2, you must add a element as a child of the manifest element in AndroidManifest.xml:
rockgecko
  • 4,127
  • 2
  • 18
  • 31
36
votes
16 answers

Google Maps V2 - Error inflating class Fragment

I'm trying my hand and Android Application Development. I'm currently using Eclipse (I can't remember the version, whatever the newest is). I've crossed a bridge where I just can't seem to grasp what I'm doing wrong. I'm attempting to use the Google…
user2048672
  • 365
  • 1
  • 3
  • 5
36
votes
3 answers

How to disable the map rotation feature in the Android Map Fragment

I use the Google Maps Api Version 2 for Androidto add a MapFragment to my Application. This Fragments improves a lot in terms of speed and API usability. Sadly it also allows to rotate the map with a two finger gesture. I want to disable the…
Janusz
  • 187,060
  • 113
  • 301
  • 369
35
votes
9 answers

Android Google Maps fragment in the xml. I get "Unexpected namespace prefix"

I'm trying to learn android, and having followed the instructions on how to use the Google Maps API V.2 I now got it working. However, the instructions on how to configure the initial state of the maps, found at developers.google.com, suggests a…
34
votes
5 answers

NoSuchFieldError: No static field MapAttrs of type when Using MapFragment with Play Services 6.5

Maybe I am missing something here, but I am not able to use the new Maps only dependency in Play Services 6.5 I get the following exception: java.lang.NoSuchFieldError: No static field MapAttrs of type [I in class…