android-maps-v2

Android Google Maps Version 2 Not Displaying

前提是你 提交于 2020-01-04 05:52:41
问题 I know there have been a ton of posts on this topic, but I am puzzled. I have (2) different phones that I am testing my App on. The Google Map (Support Map Fragment) displays fine on each device, but only when I target each device directly from Eclipse (using the cable). If I create an APK file (via Exporting through Eclipse) and install the APK file that way on the device, the app runs fine, but the maps don't display (only zoom buttons appear). Here is the LogCat: 03-11 18:02:02.710: W

How to open navigation instead of mapview in android?

别来无恙 提交于 2020-01-03 18:52:08
问题 I have plotted location and if it has been clicked, it goes to maps and from maps, if it has been clicked direction, it opens google navigation.Is it possible to directly link with navigation? I have defined the code like this. GeoPoint pt = item.getPoint(); String lat = Double.toString(pt.getLatitudeE6() / 1e6); String lng = Double.toString(pt.getLongitudeE6() / 1e6); intent = new Intent(android.content.Intent.ACTION_VIEW, Uri.parse("geo:0,0?q=" + lat + "," + lng)); In uri, what should be

How to open navigation instead of mapview in android?

时光总嘲笑我的痴心妄想 提交于 2020-01-03 18:50:07
问题 I have plotted location and if it has been clicked, it goes to maps and from maps, if it has been clicked direction, it opens google navigation.Is it possible to directly link with navigation? I have defined the code like this. GeoPoint pt = item.getPoint(); String lat = Double.toString(pt.getLatitudeE6() / 1e6); String lng = Double.toString(pt.getLongitudeE6() / 1e6); intent = new Intent(android.content.Intent.ACTION_VIEW, Uri.parse("geo:0,0?q=" + lat + "," + lng)); In uri, what should be

How to display direction arrows in the map marker for google maps v2 android

こ雲淡風輕ζ 提交于 2020-01-03 10:07:06
问题 I want to display markers like these below on my android map application. I Know I have to use custom marker for this I also have the angle calculated but I don't know how to display the arrow on the marker. Any pointers will be helpful and Thanks in advance. 来源: https://stackoverflow.com/questions/19693969/how-to-display-direction-arrows-in-the-map-marker-for-google-maps-v2-android

Android maps v2 maps becomes unresponsive on orientation changed

孤街醉人 提交于 2020-01-03 05:39:09
问题 I am using new maps api. its working fine.. But when the device orientation changes.. the map become unresponsive. i mean map doesn't react to the user response. This, problem doesn't occurs when i embed the map fragment in the layout xml. but occurs only when i am trying to add the mapfragment in the layout container in the Activity's onCreate. Can anyone tell me the problem. Here the way i am adding the map <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns

How to get LatLngBounds of visible region in titled map in andorid

帅比萌擦擦* 提交于 2020-01-03 03:01:08
问题 I tried the following code. LatLngBounds b = googleMap.getProjection() .getVisibleRegion().latLngBounds; LatLng bNE = b.northeast; LatLng bSW = b.southwest; It's not giving correct bounding coordinates if tilt is set to the map 回答1: As mentioned in the Google Maps API doc VisibleRegion, the visible region for a map's camera can be in the form of a rectangle in case the camera is centered over the map region which will give you correct bounding coordinates. While it can also be in the form of

Android Map API V2 set Custom InfoWindow Position

时光怂恿深爱的人放手 提交于 2020-01-01 19:04:35
问题 I'm using InfoWindowAdapter for all the markers on my Map (Api v2). All the Markers are well visible.. The issue is that My Custom InfoWindow is having size about 500px * 300px. When I'm touching any Points on the Map its being set to Center of screen so the InfoWindow is being cropped from Top.. My requirement is to auto adjust as per Info Window Size. Please have a look at snaps. 回答1: Override the default behaviour of OnMarkerClickListener . call marker.showInfoWindow() calculate position

Android Map API V2 set Custom InfoWindow Position

十年热恋 提交于 2020-01-01 19:04:25
问题 I'm using InfoWindowAdapter for all the markers on my Map (Api v2). All the Markers are well visible.. The issue is that My Custom InfoWindow is having size about 500px * 300px. When I'm touching any Points on the Map its being set to Center of screen so the InfoWindow is being cropped from Top.. My requirement is to auto adjust as per Info Window Size. Please have a look at snaps. 回答1: Override the default behaviour of OnMarkerClickListener . call marker.showInfoWindow() calculate position

Google Maps Android API v2: Failed to Load Map. Could not contact Google Servers

好久不见. 提交于 2019-12-30 18:09:09
问题 I'm trying to use Google Maps Android API v2, and I have already created the SHA1 key from my release cert. I've read the comments from here and have made everything right, including the permissions for READ_GSERVICES which wasn't stated in Google's instructions here However I'm still having the error of E/Google Maps Android API(12334): Failed to load map. Could not contact Google servers. Can anyhow enlighten me if I still have something left out? I've included this as well: <permission

URI for Google Maps Intent with waypoints

狂风中的少年 提交于 2019-12-30 13:44:21
问题 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? 回答1: I think you can use +to:waypoint after the destination address.