Most voted "google-location-api" questions
Google Location Apis provide services that facilitate an application, implement, and automatically track location.
Learn more…12 questions
Sort by count of
-
10
votes4
answers16860
viewsHow to get the current location of android device?
I am developing an android application that needs to get the current location of the device (Latitude, Longitude) and use this data in google maps...how can I do this? If you help me get only the…
-
5
votes2
answers1280
viewsThe location obtained by getLastLocation() always returns null
I’m making several attempts, but I can’t get the current location of a user using the Location API. I am running the following example: public class MainActivity extends AppCompatActivity implements…
-
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, 10 months ago Paulo Neto 105 -
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
votes2
answers161
viewsHow to round double values returned by Interface Location
I own a ArrayList that stores GPS coordinate objects and their elements are always being compared with the double values returned by the methods getLatitude() and getLongitude() of Interface…
-
0
votes0
answers27
viewsSave location to image information
I need to take a photo and save it to the gallery and then send it to the database. However, I wanted to know how to save the coordinates along with the image information. Remembering that I can…
-
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
answer129
viewsCommand to update the location of the following code in 2 seconds:
I’m developing an app and I need it to always update its location within a time frame. I found in this same site the following solution to take the location and turn into a marker as well as the…
android google-maps google-maps-api-3 markers google-location-apiasked 7 years, 1 month ago user93734 -
0
votes1
answer43
viewsReturn an address
I’m finalizing a project where will open a alertDialog. Once the user presses OK he will make a confirmation and his location will be informed by a Toast. I would like to know how I can return the…
-
0
votes1
answer58
viewsHow to deal with Location services in fragments
I’m creating an app (Android) with two fragments, one with a list of addresses and the other with a map pointing to these addresses. Vertically, they are sliding tab and horizontal, they are side by…
-
0
votes0
answers25
viewsInactive GPS notification running on APP startup only
Ola, I need to adjust the app I’m developing so there’s notification whenever GPS is disabled. When the app starts, if the GPS is disabled, it alerts and then starts the Switch to location settings.…
-
0
votes1
answer695
viewsHow to get more accuracy in GPS using google Location on android
In my project, I need to get a current user location and address and constantly update my position because of greater accuracy. The problem is that when I got the location (Latitude and Longitude),…