Questions tagged [android-mapview]

MapView allows you to create your own Google map-viewing Activity

A View which displays a map (with data obtained from the Google Maps service)

MapView usually refers to the old and obsolete v1 API. For the current v2 API, use .

Useful links

2307 questions
492
votes
22 answers

How to display Toast in Android?

I have a slider that can be pulled up and then it shows a map. I can move the slider up and down to hide or show the map. When the map is on front, I can handle touch events on that map. Everytime I touch, a AsyncTask is fired up, it downloads some…
DarkLeafyGreen
  • 69,338
  • 131
  • 383
  • 601
167
votes
10 answers

Where is the Keytool application?

I need to use mapview control in android and I can't seem to understand how to run keytool. Is it installed with eclipse? I can't seem to find a download link. Thanks
Amit Raz
  • 5,370
  • 8
  • 36
  • 63
127
votes
13 answers

Drawing a line/path on Google Maps

I've been busy for a long time finding out how to draw a line between two (GPS) points on the map in HelloMapView but with no luck. Could anyone please tell me how to do so. Suppose I use the HelloMapView which extends MapView. Do I need to use…
mnish
  • 3,877
  • 12
  • 36
  • 54
113
votes
10 answers

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: GoogleService failed to initialize, status: 10, Missing an…
Zach
  • 9,989
  • 19
  • 70
  • 107
102
votes
12 answers

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:
99
votes
4 answers

How to draw a path on a map using kml file?

Can I parse kml file in order to display paths or points in Android? Please could you help me with that? This is kml sample code which I would like to display in android google map:
Pavel
  • 5,213
  • 10
  • 34
  • 47
96
votes
20 answers

moveCamera with CameraUpdateFactory.newLatLngBounds crashes

I'm making use of the new Android Google Maps API. I create an activity which includes a MapFragment. In the activity onResume I set the markers into the GoogleMap object and then define a bounding box for the map which includes all of the…
Lee
  • 3,996
  • 3
  • 33
  • 37
80
votes
3 answers

How to remove single marker using Google Maps V2?

The only method that removes markers from map is clear. However it clears all markers from the map. I want to remove only single marker or group of markers. How could i achieve this?
58
votes
2 answers

Using ItemizedOverlay and OverlayItem In Android Beta 0.9

Has anyone managed to use ItemizedOverlays in Android Beta 0.9? I can't get it to work, but I'm not sure if I've done something wrong or if this functionality isn't yet available. I've been trying to use the ItemizedOverlay and OverlayItem classes.…
Reto Meier
  • 96,655
  • 18
  • 100
  • 72
56
votes
8 answers

Android: How do I set the zoom level of map view to 1 km radius around my current location?

I want to set the map view zoomed to 1km radius but cant figure out how? The doc says that the zoom level 1 will map earths equator to 256 pixels. So how do I calculate which zoom level I need to set so that the map view shows area in 1KM…
binW
  • 13,220
  • 11
  • 56
  • 69
54
votes
8 answers

MapFragment in ScrollView

I have one of the new MapFragments in a ScrollView. Actually it's a SupportMapFragment, but anyway. It works, but there are two problems: When scrolled, it leaves a black mask behind. The black covers exactly the area where the map was, except for…
Timmmm
  • 88,195
  • 71
  • 364
  • 509
53
votes
2 answers

Android MapView -setting zoom automatically until all ItemizedOverlay's are visible

hard-coding the setZoom() within onCreate() feels very antiquated and I'd like to enhance the user experience by initially having the MapView set the zoom until all GeoPoints / OverlayItems are visible on the map. How can this be done…
Someone Somewhere
  • 23,475
  • 11
  • 118
  • 166
52
votes
2 answers

Should I use MapView or MapFragment

I am not sure whether I should be using MapView or stick to using a MapFragment. My application is an app that finds the nearest set of places that are closest to you. I want to be able to add locations, display details of a marker when I press a…
51
votes
5 answers

Android, How to remove all markers from Google Map V2?

I have map view in my fragment. I need to refresh map and add different markers based on condition. So, I should remove last markers from map before add new markers. Actually, some weeks ago app was working fine and suddenly it happened. My code is…
Hesam
  • 52,260
  • 74
  • 224
  • 365
51
votes
8 answers

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 screenshot of the google map to share via social media. I…
DiscDev
  • 38,652
  • 20
  • 117
  • 133
1
2 3
99 100