Questions tagged [google-maps-android-api-2]
Google Android Maps Api v2 is the next generation of Google Maps SDK available for Android developers.
google-maps-android-api-2
839
questions
61
votes
3
answers
155k
views
How can I show current location on a Google Map on Android Marshmallow?
I want google maps to show the location of the user. I tried this code, but it did not work on Android 6.
private GoogleMap map;
LocationManager lm;
LocationListener ll;
Location l;
LatLng pos;
@...
200
votes
7
answers
131k
views
Google Maps Android API v2 - Interactive InfoWindow (like in original android google maps)
I am trying to a make custom InfoWindow after a click on a marker with the new Google Maps API v2. I want it to look like in the original maps application by Google. Like this:
When I have ...
101
votes
12
answers
217k
views
This app won't run unless you update Google Play Services (via Bazaar)
I'm testing out the new Google Maps API V2 for Android, and I'm getting this message when the app launches:
This is running on an 4.1 emulator.
Here is my AndroidManifest.xml file:
<manifest ...
192
votes
4
answers
204k
views
How to create a custom-shaped bitmap marker with Android map API v2 [duplicate]
I am developing an Android Application where I'm using Google Map API v2. I need to show the user location on a map with custom markers.
Each marker will show the picture of the user from an URL. The ...
73
votes
3
answers
71k
views
TileProvider using local tiles
I would like to use the new TileProvider functionality of the latest Android Maps API (v2) to overlay some custom tiles on the GoogleMap. However as my users will not have internet a lot of the time, ...
46
votes
11
answers
120k
views
Running Google Maps v2 on the Android emulator
I've tried to implement Google Maps v2 in my Android application, but unfortunately instead of maps I get this message:
Is it possible to run these maps on the Android emulator (Platform 4.2)?
83
votes
4
answers
106k
views
Draw path between two points using Google Maps Android API v2
Google changed its map API for Android and introduced API V2. The previous codes for drawing path are not working with API V2.
I have managed to draw a path with API V2. I had searched a lot for the ...
107
votes
11
answers
265k
views
How to download Google Play Services in an Android emulator?
I want to use Google Play Services API in my application, but when I open the emulator to test my application it sends me a message that says "Google Play Services must be downloaded". I know that ...
55
votes
4
answers
112k
views
Get driving directions using Google Maps API v2
I am trying to get the driving direction between the two positions:
LatLng(12.917745600000000000,77.623788300000000000)
LatLng(12.842056800000000000,7.663096499999940000)
The code which i have tried:...
100
votes
18
answers
150k
views
Google Maps Android API v2 Authorization failure
My steps:
got SHA1 code from debug.keystore
create app in google apis console
enabled google map api v2
input SHA1;my.package.name
get API key
created AndroidManifest file:
&...
113
votes
10
answers
102k
views
GoogleService failed to initialize
I am using google Maps in my android application. I have created the key and added necessary permissions in manifest file. But soon I start the application I get this message in debugger:
...
54
votes
5
answers
145k
views
How to draw interactive Polyline on route google maps v2 android
i have the following code which is drawing polylines for me and working fine, But the problem is that its not drawing interactive polylines, drawn lines are missing some pixels !
import java.io....
53
votes
8
answers
47k
views
Capture screen shot of GoogleMap Android API V2
Final Update
The feature request has been fulfilled by Google. Please see this answer below.
Original Question
Using the old version of the Google Maps Android API, I was able to capture a ...
55
votes
11
answers
35k
views
Error opening SupportMapFragment for second time
When opening my SupportMapFragment (Android maps v2) for a second time (calling setContentView) I get the following error:
01-28 16:27:21.374: E/AndroidRuntime(32743): FATAL EXCEPTION: main
01-28 16:...
39
votes
4
answers
84k
views
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 ...