All Questions
102 questions
0
votes
1
answer
99
views
Google maps does not get the user location if the user does not have a recent location
I have encountered a problem when getting the users current location if the user does not have any recent location the map cannot find the current location but if I allow other apps on location then ...
1
vote
1
answer
1k
views
android Kotlin - location services didn't get enabled even though location permission is granted in phone settings
I am a newbie to android. I wanted to display the prompt asking permission for location and display the device's current location in the google map if user granted permission. For that, I was ...
0
votes
0
answers
576
views
How can we use LocationRequest.Builder in requestLocationUpdates() function as a parameter
As LocationRequest.create() is deprecated and instead of it we shall use LocationRequest.Builder but when i pass this in requestLocationUpdates() as a parameter, it shows error.
Here's my code:
...
-2
votes
1
answer
49
views
My map snaps to current location (which is what I want), but it won't allow me to scroll or zoom anywhere else
I have an app that shows and zooms automatically to current user (which is what I want), but I also want to zoom out and scroll anywhere else on the map., but each time I do that it snaps back to ...
0
votes
0
answers
149
views
How to save the longitude and latitude of an online user into firebase database
My app cannot get the longitude and latitude of the current online user and store it in a firebase database, the database keeps on being empty even when there is a user that is currently online. At ...
2
votes
0
answers
194
views
How to get location updates using FusedLocationProviderClient?
I'm an Android noob and also this is my first post on stackoverflow. I've been trying for some time to find a solution to my problem but couldn't find anything so that's why I'm asking here.
I'm ...
0
votes
2
answers
2k
views
Android - get coordinates accurately like Google Maps [duplicate]
How can I get my current coordinates accurately like Google Maps?
By now, I have used getLastLocation - it worked, but I get the same coordinates for the same area of 20 meters - it's not that ...
2
votes
0
answers
250
views
addOnFailureListener() doesnot call if user once enabled and after sometime disable location. when using LocationServices.getSettingsClient()
I have used LocationServices.getSettingsClient() to remove depricated
LocationServices.SettingsApi.checkLocationSettings().
It is asking user to enable location
first time when mainActivity launch if ...
1
vote
1
answer
357
views
How to change by default blue round location icon in google map fragment in Android?
The blue round icon of current location that appears on map fragment when we enable setMylocationEnabled(true) is required to be changed in my scenario. How can I achieve that by default a vehicle ...
1
vote
1
answer
71
views
Is there a way to replicate the accuracy of Google maps on your own app?
I was working on a project which needed to pinpoint the user's coordinates to within a few meters of accuracy. I noticed that the Google Maps app on my phone will HIGHLY accurately track my movement ...
2
votes
1
answer
323
views
Android Google Maps URL query - placing marker while offline
I'm launching the following intent from my Android app, using Google's published format for map URLs:
startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("https://www.google.com/maps/search/?api=1&...
0
votes
1
answer
302
views
Maps location change listener not triggered
I am developing an application with Google maps in it. Maps can find my location and put a marker on it. But I wrote onLocationChangeListener and. Toast to show my coordinates (longitude altitude). ...
0
votes
2
answers
39
views
Geting a nul Object Reference in fetching current Latitude and Longitude [duplicate]
I was fetching the current Latitude and Longitude for my project, it was working perfectly at first, but now I'm retrieving null values. I do have turned on the Location and given permission for the ...
0
votes
0
answers
24
views
How can i get the location updates for tracking when the other device while traveling?
My project is for tracking the driver from the customer device just like Uber. What i have done is I'm fetching the location data sent by the driver to the server with the help of volley library and ...
1
vote
0
answers
37
views
getting null value for GoogleApiclient in fragment?
Here is my code. I am getting null in googleapiclient.
public class MapsActivity extends Fragment implements OnMapReadyCallback, GoogleApiClient.ConnectionCallbacks, GoogleApiClient....