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
34
votes
7 answers

Error package `com.google.android.gms...` doesn't exist

I am new to Android development. I am learning to use Parse.com backend service and get stuck early on. I am following tutorial to create application that uses Google Maps Android API v2. What I've done : download sample project from parse Import…
har07
  • 88,338
  • 12
  • 84
  • 137
34
votes
10 answers

Google maps v2: Authorization failure

Authorization failure. Please see https://developers.google.com/maps/documentation/android/start for how to correctly set up the map. Ensure that the following correspond to what is in the API Console: Package Name: com.company.app, API Key:…
basvk
  • 4,437
  • 3
  • 29
  • 49
34
votes
5 answers

Custom infowindow in Google map android v2

I am using Google Map API V2 and i have created a custom InfoWindow for a Marker on map.In this InfoWindow i have a button. My problem is unable to set Onclicklistener/functioning to that Button(Dummy).Any one give me some idea to solve this : Here…
SBK
  • 1,585
  • 2
  • 16
  • 19
33
votes
2 answers

How to handle onTouch event for map in Google Map API v2?

GoogleMap by default doesn't provide event for map drag start and drag stop. I have already reported that problem here. I want to make custom handler that will use plain onTouch event and combine it with setOnCameraChangeListener. However i failed…
32
votes
2 answers

Showing custom InfoWindow for Android Maps Utility Library for Android

I'm using the library Google Maps Utility for Android which allows to create clustering int he maps and I need to show a custom InfoWindow but I can't find any method to do this. In order to show the info window, I have the following class, and in…
noloman
  • 11,411
  • 20
  • 82
  • 129
32
votes
3 answers

Associate an object with Marker (google map v2)

In my app I have some objects that have their location displayed on the map using markers. The problem is that the only way I've found to handle marker clicks is googleMap.setOnMarkerClickListener(new ... { @Override public void…
leshka
  • 1,764
  • 6
  • 32
  • 42
32
votes
4 answers

How to animate marker in android map api V2?

I want to implement smooth transition to emulate car marker moving on the map. Is it possible to animate marker in android map api v2?
32
votes
3 answers

Google Maps Android API V2 check if GoogleMaps are installed on device

When using Google Maps Android API V2 I'm following the Google Play Services setup documentation to make a check to ensure that Google Play Services are installed, using the following code in my main Activity: @Override public void onResume() { …
DiscDev
  • 38,652
  • 20
  • 117
  • 133
32
votes
2 answers

Google Maps Android API v2 very slow when adding lots of Markers

I am updating an existing Android app to use the new Google Maps Android API v2. I have about 2500 markers that I want to add to the map. With the older version of the API I found the responsiveness of the maps to be horrendous when there are 2500…
DiscDev
  • 38,652
  • 20
  • 117
  • 133
31
votes
5 answers

How do I draw a route, along an existing road, between two points?

I want to show the driving route between two locations in my android app. I want to draw the route only on top of road segments. There are several answers on stack overflow itself, and all of them were using the same method. Get the directions from…
Lahiru Chandima
  • 22,324
  • 22
  • 103
  • 179
31
votes
5 answers

Night mode for Google maps?

My question is simple. Is there a night mode for Google maps? So far I could only apply GoogleMap.MAP_TYPE_NORMAL | GoogleMap.MAP_TYPE_TERRAIN | GoogleMap.MAP_TYPE_SATELLITE but could not find Night Mode. I want something like this Please do not…
Shahzeb
  • 3,696
  • 4
  • 28
  • 47
31
votes
4 answers

How to customize PlaceAutocomplete widget dialog design to list places

I need to show a list of places in dropdown using google placeAutocomplete widgets. Here I'm getting dialog to show places according to my query but I need to give a custom design for that search result dialog as in Uber, Ola apps. Here I want a…
Moorthy
  • 723
  • 1
  • 6
  • 20
31
votes
5 answers

Add identification to marker on google maps v2 api for android

Well, every marker on my application will represent a user, so I need to identify that user when I click the info window to get its data from the Internet, and I can't make it identify them by name for obvious reasons. Is it possible to add an extra…
vdrg
  • 369
  • 1
  • 3
  • 9
30
votes
7 answers

"Google Play services are updating" error on release, not emulator (Google Play Services 12.6.73, Huawei devices)

I'm facing the same issue as in Stack Overflow question "Google Play services are updating" in Google Maps API. Unfortunately, out of nowhere, some of my users are suffering this issue, as well as my own phone. On the other hand, for other users it…
30
votes
7 answers

Display toolbar for Google Maps marker automatically

I have a marker and when I open the map it shows the marker. When I click on it it shows the title and a toolbar which includes two buttons on the bottom right of the map which let me launch intents to navigate to the marker or show it in google…