Most voted "google-maps-android-api-2" questions
Google Maps API v2 Android Library created by Google where the main purpose would be to facilitate the manipulation of the map compared to the previous version.
Learn more…62 questions
Sort by count of
-
14
votes2
answers13123
viewsIdentify if set of coordinates is within a radius on Android
I want to delimit a radius from a central coordinate (the red marker in the figure) and, from a set of coordinates (the green markers), check that these are within the area bounded by this radius.…
-
11
votes2
answers2940
viewsDraw path on the map
How do I draw a particular path using the Google Maps V2 API? What I want is something more or less like this: I inform the street A and the street B and get the drawing of the path between these…
-
10
votes2
answers936
viewsOpen map at current user position
I’m trying to open Googlemaps in the current position of the user, I’ve done a lot of research and still can’t make it work in my project. I’m using Fragments to manage the layout. In the current…
-
5
votes1
answer248
viewsOptimize the movement of the marker in Maps
Working with an application where I add one Marker on the map, as : markUser.draggable(true); But I want to optimize this method, to move the marker is necessary to hold for a while, I want with a…
-
5
votes1
answer148
viewsHow do I start Maps in a specific place?
How do I make the App, when opening Google Maps, zoom in on a specific place (for example, a specific coordinate)? The codes of the demo it shows ALL continents when initializing being necessary to…
-
5
votes1
answer1084
viewsHow to get the coordinates of a point at a certain distance from my location?
Speak guys, I’m making an app, and in an app Activity need from my location to "zoom" in the maps as the user slides a seekBar, as per the image. I’ve been thinking about using the Bounds feature on…
-
5
votes1
answer153
viewsMap opens before picking up the GPS position
I’m studying programming for Andriod and I came across a feature that I just don’t know anything, which is the order of execution of the duties! please , someone could give a light? I explain, in my…
-
4
votes1
answer379
viewsAndroid 6 problem with map.setMyLocationEnabled(true)
I have a problem with the Google Api 23+ specifically in the method mapa.setMyLocationEnabled(true); You need permission to run, and on android 6.0+, I can’t implement the new permissions method.…
android google-maps-android-api-2 android-permissionasked 8 years, 3 months ago Roger Casagrande 123 -
3
votes1
answer67
viewsIs it possible to implement the onLongClickListener method on the map?
I am developing an application that works on Google Maps API v2. I’ve already defined the method onClickListener() to open a WindowManager in order to display the name of the point of interest and…
-
3
votes0
answers551
viewsHow do you get real-time traffic information like Waze?
I can enable traffic density across the map using setTrafficEnabled(true), as demonstrated here: I would like to make other information available (accidents, blitz, etc. ) in Googlemaps v2 the same…
-
3
votes2
answers2999
viewsShow/Hide Bookmarks as Zoom on Android map
I’m developing an android app that will contain many bookmarks on the map, and in order not to get too messy I wish that if I was zooming out the markups would go into Hide, I tried the following…
-
3
votes1
answer1266
viewsHow to plot a route using maps API
I’m making an app in Android Studio for an event and would like that: When opening a specific screen, the app would use the mobile gps to acquire the source coordinates and open the google maps app…
-
3
votes1
answer173
viewsEvent by clicking on a Google Maps marker
I wonder if there is a way to put event in Google Maps markers to open a custom information window, such as a Fragment, for example.
-
3
votes0
answers193
viewsHow do I save a Google Maps map for offline use?
I am making an application that uses the Google Maps API for Android. The problem is that it only displays the map if it is connected to the Internet. How can I download the map of a certain region…
-
2
votes1
answer135
viewsAndroid map Version 2 with supporte library
I’m using the Android maps v2 api. I have in my Activity the following statement <fragment android:id="@+id/map" android:name="com.google.android.gms.maps.MapFragment"…
-
2
votes1
answer103
viewsCallback after moveCamera on Google Maps
I have a Pageview that, in one of its Fragments, houses a Mapview with a map in "Lite" mode. Clicking on this map, a second Activity is launched (startActivityForResult) which consists of a complete…
android google-maps maps google-maps-android-api-2 callbackasked 9 years, 8 months ago Rodrigo Borba 121 -
2
votes1
answer203
viewsGoogle api v2, I already have the key, however, provided by third parties, how to enable without SHA-1?
I have a key to enable the Google Maps V2 on android, I did everything I had to do in Manifest and Gradle, when running the request, Fragment appears named Google, however, does not load anything,…
-
2
votes3
answers1031
viewsHow to insert markers (Marker) into a map in another Fragment?
I’m developing a app Android where you insert a courier task list (pick something up on the dot A and bring to the point B) and these dots are shown on a map. The App has two fragments:…
-
1
votes2
answers816
viewsAddress conversion on Google Maps
I’m making an App to search addresses on Google Maps. Is there any way to convert a String in Location, so I can take longitude and latitude? Or is there a better way?…
-
1
votes2
answers1484
viewsHow to return Latitude and longitude on Android Google-Maps
I would like to know how I can return latitude and longitude from an address provided by the User. Example "Av. Sampaio Vidal,Centro, Marília, SP" Answer coordenadas -22.225985,-49.94656…
-
1
votes1
answer228
viewsSwipe to the right after left gives ANDROID error
I am creating an application on Android in Eclipse with 3 screen with Swipe horizontal, in the last tab I have a Map Fragment. But it turns out that when doing Swipe to the right the first time…
-
1
votes1
answer1162
viewsInsert Google Maps search bar
How to insert a search bar in Google Maps on Android? Need something similar to the image below: For this result, will I need to use Text and Overlay? Is there an example to help you understand?…
-
1
votes2
answers81
viewsApp with Maps
How do I use maps in the app? Is it through certificate generated on my pc that then validates on the web? I can make application of this genre in the eclipse?
-
1
votes1
answer140
viewsHow to center my location by clicking on a Marker?
Hi! I am developing an application that works on Google Maps API v2 and I have defined the method mMap.setMyLocationEnabed(true) to obtain the user’s location. My question is: how do I, when…
-
1
votes1
answer1066
viewsHow to create a button in the google maps API to add a bookmark?
The doubt is as follows... I searched for a few days before coming here, but I just think how to add the marker in a manual way like the google example: // Add a marker in Sydney and move the camera…
android google-maps google-maps-android-api-2 google-location-apiasked 8 years, 9 months ago Paulo Neto 105 -
1
votes1
answer688
viewsCustom Infowindow Google Maps Android
It is possible to customize an Infowindow of the marker in Googlemaps v2 from Android by placing clickable buttons, images, change background color etc? If yes, how can I do that? Thanks if anyone…
-
1
votes1
answer1018
viewsGoogle Maps address search for Android?
How do I search an address in Google Maps for Android, from the name of the location?
-
1
votes1
answer122
viewsMap no longer works
I’m developing an application that used the Google Maps API. It was working normally, until I upgraded Android Studio from 2.1 to 2.2 and from there to here, it stopped working. What do I do to use…
-
1
votes1
answer471
viewsCompare geopoints with user geolocation
I’m using the Google Maps API v2 in the Android Studio and I took the base code that made it available and just implemented a few points on the map, using latitude and longitude of the points…
-
1
votes1
answer124
viewsAutomatic zoom on marker
I use this code to retrieve Lat and lang from a user in firebase, My doubt is how to give an automatic (animated) zoom in the marker... mDatabase.child(mPost_key).addValueEventListener(new…
android google-maps google-maps-android-api-2 google-location-apiasked 7 years, 9 months ago Wallace Roberto 496 -
1
votes1
answer67
viewsCrashing when starts the 2nd Activity
The first screen is the login, normal log, communicates with the server and such, there goes to second, there is a fragment of google maps, when it goes to second crash the app, the error that…
-
1
votes0
answers35
viewsSetar Bearing using Cameraupdate
I have two positions (LatLong) I’d like to center them on the map! For that, I’ll tell you what: final LatLngBounds.Builder builderZoom = new LatLngBounds.Builder(); if(null != mCurrentLocation){…
android google-maps google-maps-android-api-2asked 7 years, 9 months ago Thiago Luiz Domacoski 7,310 -
1
votes1
answer166
viewsHow to put more information in the window by clicking a Marker?
When opening the map, in Mainactivity, I display some pins on the screen (markerOptions), as codes below: WAPIService.getInstance().getPontosMapeamento(latitude, longitude, new…
-
1
votes1
answer915
viewsGoogle Maps Location button (Android Studio) not displayed
I’m developing a native Android app, with the Android Studio IDE, which integrates with the Google Maps API. I noticed in several videos that when activating the setMyLocation(True) property you…
-
1
votes2
answers238
viewsAndroid Studio and Google Maps API - Change Travel Mode
Hello guys, beauty? So, I’m developing an application using Android Studio and Google Maps API. So I came across a question that until then I couldn’t find anything that could solve my problem.…
-
1
votes2
answers125
viewsGoogle Maps returning Latitude and Longitude as zero and problems when placing the Marker
I’m trying to use Google Maps, and settar a location in it (pulling the user’s Latitude and Longitude). It pulls and displays on a Toast, but it does not Setta this in the onMapReady method and not…
android google-maps android-fragment google-maps-android-api-2asked 6 years, 9 months ago Wallace Baldenebre 114 -
1
votes1
answer38
viewsError trying to open map with path disabled
So far, the goal of this application is, when opening, locate the user and display some points already mapped. When the app opens (location disabled or not), it asks if the user allows him to use…
-
1
votes1
answer53
viewsInsert multiple Markers into Maps
I found a code here on the site, I put in my project but it didn’t work, anyone knows how I can solve? The method below is called in onViewCreated() Note: I am using the Map inside a Fragment, it…
java android android-studio android-fragment google-maps-android-api-2asked 6 years ago Elailson Silva 11 -
0
votes2
answers608
viewsGoogle Maps Android API v2 - Debug key API is not working
I’m trying to use the Google Maps Android API v2 on my Android app. It was running on another developer’s micro, with the debug.keystore but with my debug.keystore (located in C:\Users\Meu…
-
0
votes1
answer819
viewsAdd bookmark on map ANDROID
Good night, I have an application with a map in a Swipe tab, but I want the map to mark a point on the map and start at that point. thanks in advance. Together send the JAVA: public class Mapa…
android eclipse api android-fragment google-maps-android-api-2asked 10 years, 3 months ago SaPires 175 -
0
votes1
answer189
viewsUpload image from a url to an Infowindowadapter
I am trying to show an image from a URL on an "Infowindowadapter", but it is never shown. I’m using the Volley library to upload images. Someone has an idea how to solve this problem? //no fragment…
-
0
votes2
answers76
viewsApp stopping when using Location API
This code would be used to when the user pressed a button, its latitude and longitude would be found and later sent to a server. But the app crashes when it starts, remembering that I took this code…
java android google-maps-android-api-2 google-api-client google-location-apiasked 8 years, 2 months ago Elvis Roberto 13 -
0
votes1
answer96
viewsProblem loading Maps v2
Good morning! I have the following code to load the map in my application: if (mMap == null){ mMap = ((SupportMapFragment) getSupportFragmentManager().findFragmentById(R.id.map)).getMap(); if(null…
android google-maps google-maps-android-api-2asked 9 years, 1 month ago Thiago Luiz Domacoski 7,310 -
0
votes1
answer577
viewsSending location to webservice
Hello, I have a problem, I have a service on android that captures the user’s location in a certain range. Captured I send to the server, where it will pick up this location and save in the…
-
0
votes0
answers180
viewsGoogle Maps API, Location not shown
I’m having a problem in google maps API, was working all ok when I was emulating my android studio map to my mobile. After I make my app available in google play, the users that lower, the map does…
-
0
votes1
answer153
viewsError inflating class Fragment using maps
When I run my app, after selecting the event that directs to a activity using maps, it ends with Fatal Exception. luizugliano.com.br.lugaresfavoritos.Mapsactivity}: android.view.Inflateexception:…
android google-maps android-fragment google-maps-android-api-2asked 8 years, 12 months ago Luiz Henrique Ugliano 651 -
0
votes1
answer110
viewsPass Activity coordinates to Mapsfragment
I need to pass the latitude and longitude that I pick up at the HomeActivity to the MapsFragment, for the map to open soon at user’s position. I tried to see Intent and it doesn’t work. My code:…
-
0
votes1
answer235
viewsWhat command do I use to update my code every 2 seconds?
I’m developing an App in Android Studio that takes the location of the device and returns me in latitude and longitude, I use it later to make a marker. However, if I install the application on my…
-
0
votes1
answer128
viewsGoogle Maps Direction API only works the first time
I have the following code that creates a route using the Google Maps Directions API: public class MapsActivity extends FragmentActivity implements GoogleApiClient.ConnectionCallbacks,…
-
0
votes1
answer291
viewsonMapReady performs faster than the function that recovers the location
hello, I’m trying to use map help in my app. I recover the coordinates through Json, the problem is that the function that leads to the coordinate (onMapReady) performs faster than the function that…