android-maps-v2

URI for Google Maps Intent with waypoints

六月ゝ 毕业季﹏ 提交于 2019-12-01 14:32:39
I would like to add to my app ability to open Google Maps app with more than 2 points but I can only set start point and end point. How to add waypoints? I've tried uri as described in https://stackoverflow.com/a/13565504/3626048 but it's not working. In Google Maps doc https://developers.google.com/maps/documentation/android/intents there's also nothing about it. Is it even possible to add waypoints to Google Maps intent? I think you can use +to:waypoint after the destination address. For example: https://www.google.com/maps?saddr=San+Francisco&daddr=GooglePlex+Mountain+View+to:San+Jose Or:

Google map reporting invalid key in Android

∥☆過路亽.° 提交于 2019-12-01 13:37:11
I got the SHA-1 fingerprint from using the keytool for my application on my key that I sign the application with when I upload it to the play store. But when I open the app on my phone for testing it says it is not the right key. ANy ideas what I could be doing wrong? Not sure what more information i can give without giving security info for my app, so if you can help give me anymore information that I can not think of please let me help you help me. First for the development generate a SHA-1 from debug.keystore: Navigate to C:\Program Files\Java\jdk1.6.0\bin>..... where your bin located then

Maps V2 myLocation blue dot callback

China☆狼群 提交于 2019-12-01 12:58:12
I want to be able to click the blue dot (my location) that is shown on the map. Is there anyway to get a callback from that click? Thanks, Martijn One possible workaround might be drawing a Marker (with a similar icon) on top of the My Location dot so you can receive the corresponding onMarkerClick() callback. This would also require removing the marker and adding it to the new location everytime there's a location update event, which you can listen to by implementing OnMyLocationChangeListener . EDIT : the OnMyLocationChangeListener interface is now deprecated, one should use instead the new

PlaceAutocomplete Widget on MapView Fragment

岁酱吖の 提交于 2019-12-01 12:12:38
I am trying to create a mapview with a PlaceAutocomplete widget overlayed on it. The function of this view is to calculate the distance from my current location to the location I have chosen in the PlaceAutocomplete widget. To explain myself better, I need a similar fragment, as to the Google Maps app. For the time being I have created a fragment which displays the map. This view is then being overlayed by the PlaceAutocomplete widget. Currently, I am able to get my current location when I start the mapview. (screenshot 1) However when I try to search for a destination (screenshot 2), the

Maps V2 myLocation blue dot callback

北慕城南 提交于 2019-12-01 12:00:06
问题 I want to be able to click the blue dot (my location) that is shown on the map. Is there anyway to get a callback from that click? Thanks, Martijn 回答1: One possible workaround might be drawing a Marker (with a similar icon) on top of the My Location dot so you can receive the corresponding onMarkerClick() callback. This would also require removing the marker and adding it to the new location everytime there's a location update event, which you can listen to by implementing

PlaceAutocomplete Widget on MapView Fragment

倾然丶 夕夏残阳落幕 提交于 2019-12-01 10:10:01
问题 I am trying to create a mapview with a PlaceAutocomplete widget overlayed on it. The function of this view is to calculate the distance from my current location to the location I have chosen in the PlaceAutocomplete widget. To explain myself better, I need a similar fragment, as to the Google Maps app. For the time being I have created a fragment which displays the map. This view is then being overlayed by the PlaceAutocomplete widget. Currently, I am able to get my current location when I

colourful polylines in android maps api v2

久未见 提交于 2019-12-01 08:23:31
I want to draw polyline in android maps api version 2. I want it to have many colors, preferably with gradients. It seems to me though, that polylines are allowed to have only single color. How can I do that? I already have api-v1 overlay drawing what I like, so presumably I can reuse some code public class RouteOverlayGoogle extends Overlay { public void draw(Canvas canvas, MapView mapView, boolean shadow) { //(...) draws line with color representing speed } Guillaume Noël-Martel I know it's been a pretty long time since this has been asked, but there are still no gradient polylines (as of

Android - Google Maps Extensions - IllegalArgumentException

亡梦爱人 提交于 2019-12-01 08:19:48
I'm getting an IllegalArgumentException when I call this createMarker() method: private void createMarker(GoogleMap map, MarkerOptions options, OnMarkerCreateListener listener) { Log.e("LazyMarker", "Options var val: "+options); Log.i("LazyMarker", "GoogleMap Value:"+map); Log.i("LazyMarker", "OnMarkerCreateListener Value:"+listener); marker = map.addMarker(options); //Log.i("LazyMarker", "The value of Marker is:"+map.addMarker(options)); if (listener != null) { listener.onMarkerCreate(this); } } Here is the logcat output: 06-14 11:40:38.627: I/OGT.RideTracking(25590): Map value is: com.google

colourful polylines in android maps api v2

元气小坏坏 提交于 2019-12-01 06:57:34
问题 I want to draw polyline in android maps api version 2. I want it to have many colors, preferably with gradients. It seems to me though, that polylines are allowed to have only single color. How can I do that? I already have api-v1 overlay drawing what I like, so presumably I can reuse some code public class RouteOverlayGoogle extends Overlay { public void draw(Canvas canvas, MapView mapView, boolean shadow) { //(...) draws line with color representing speed } 回答1: I know it's been a pretty

Android - Google Maps Extensions - IllegalArgumentException

旧城冷巷雨未停 提交于 2019-12-01 06:36:22
问题 I'm getting an IllegalArgumentException when I call this createMarker() method: private void createMarker(GoogleMap map, MarkerOptions options, OnMarkerCreateListener listener) { Log.e("LazyMarker", "Options var val: "+options); Log.i("LazyMarker", "GoogleMap Value:"+map); Log.i("LazyMarker", "OnMarkerCreateListener Value:"+listener); marker = map.addMarker(options); //Log.i("LazyMarker", "The value of Marker is:"+map.addMarker(options)); if (listener != null) { listener.onMarkerCreate(this);