Questions tagged as 'google-location-api'

4
answers

How to get the current location of the android device?

I'm 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 latitude and longitude coordinates, it will be a...
asked by 21.04.2016 / 15:58
2
answers

The location obtained by getLastLocation () always returns null [duplicate]

I'm making several attempts, but I can not get a user's current location using the Location API . I'm running the following example: public class MainActivity extends AppCompatActivity implements GoogleApiClient.ConnectionCallbacks,...
asked by 20.08.2016 / 19:26
4
answers

How to get the current location of the android device?

I'm 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 latitude and longitude coordinates, it will be a...
asked by 21.04.2016 / 15:58
1
answer

Automatic marker zoom

I use this code to retrieve Lat and lang from a user in firebase, My question is how to automatically zoom in on the bookmark ... mDatabase.child(mPost_key).addValueEventListener(new ValueEventListener() { @Override publ...
asked by 20.02.2017 / 15:36
1
answer

How do I create a button in the google maps API to add bookmark?

The question is as follows ... I checked one for a few days before coming here, but I just think how to manually add the bookmark to the google example: // Add a marker in Sydney and move the camera LatLng sydney = new LatLng(-34, 151); Map...
asked by 02.02.2016 / 22:55
2
answers

How to round the doubles values returned by Interface Location

I have a ArrayList that stores GPS coordinate objects and their elements are always compared to the double values returned by the getLatitude() and getLongitude() methods of Interface . Problem From the tests I've done...
asked by 16.10.2016 / 18:31
2
answers

App stopping while using the Location API

This code would be used when the user pressed a button, its latitude and longitude were found and later sent to a server. But the app crashes when it starts, remembering that I got this code from a post here in SOpt. The error you give is thi...
asked by 19.09.2016 / 20:46
1
answer

Return an address

I'm finalizing a project where it will open an alertDialog. As soon as the user presses OK they will make a confirmation and their location will be informed by a toast. I would like to know how I can return the place where the user is.     
asked by 10.07.2018 / 01:24
1
answer

Command to update the location of the following code every 2 seconds:

I'm developing an app and need it to always update its location within a time frame. I found in this same site the following solution to get the location and turn into a marker as also the camera goes to this location:     
asked by 25.10.2017 / 15:17
0
answers

LocationClientHelper: exception when setting module id

Good evening guys, I'm at the end of my application, but I'm going through a problem that I have no idea how to solve since 2 days I've been working on it. After implementing a sdk of Ads (AppLovin) I noticed that this failure started, due to...
asked by 01.12.2018 / 00:35