Questions tagged [google-location-services]

The google (android) specific api of location-services, which is used to determine your approximate location. Your location could be determined using data from cellular, Wi-Fi or Global Positioning System (GPS) networks.

This tag can be used in posts relating to either Google Play services location APIs or the Android framework location APIs.

234 questions
0
votes
1 answer

Does the Google LocationServices need internet?

When you're offline (no wifi nor mobile) does the Google Location Services Api work ? and if it does, does it just return the last known location (the last time the user was online) or does it return the real curent location ?
0
votes
1 answer

Google Location Services getLastLocation gets null when launching app for the first time

So i want to display my latitude and longitude of the position, however it shows me only when i launch the app again. When i install the app, and launch it for the first time there is no position received. What is the simple way to get the current…
K.Os
  • 5,123
  • 8
  • 40
  • 95
0
votes
1 answer

Getting location with the Google Play Services Location API vs getting it with the Awareness API

I've read many good comparisons between Android's framework location API and the Google Play Services Location API. However, is there any benefit in using (exclusively to obtain location) the Google Play Services Awareness API over the Google Play…
diazdeteran
  • 1,144
  • 1
  • 13
  • 25
0
votes
0 answers

google location API failed after publishing my android app

when i was using google location API in my android app , it was working fine but after publishing it on playstore it says API_KEY_FAILED. After google, I found that I need to put my SHA1 Fingerprint key and restrict the API, but after doing so still…
Sweta Prakash
  • 149
  • 1
  • 2
  • 8
0
votes
0 answers

Nearby Location Serach based on zip code from database PHP

I have a table which searches the theaters from database based on zip code, currently i have used this query to sort results, but i want the exact matched location first and then nearby location in while loop Is there any way, i have searched but…
Raman
  • 624
  • 5
  • 13
0
votes
0 answers

Unable to retrieve location using 'LocationManager.NETWORK_PROVIDER' even when WiFi is enabled in device running android M

I'm trying to retrieve location using LocationManager following this tutorial. I'm running the code on an android device running Marshmallow and I have checked the permission and running below code once the permission is granted. Here's my…
0
votes
1 answer

Google location client optimizing inaccurate / wrong location updates

I'm making an android function that saves the route path that my client travels in while he is logged-in to my app. Kind of like how Uber tracks the ride path. This works fine most of the time, Like many before me have stated, the…
0
votes
3 answers

Can't find symbol variable "LocationServices" in GoogleApiClient instance?

i am new to GeoFencing and i am trying to add API to the GoogleApiClient instance.But it is showing error like can't find variable LocationServices. Here is my code: private void createGoogleApi() { Log.d(TAG, "createGoogleApi()"); if (…
Vikash Kumar
  • 395
  • 5
  • 17
0
votes
2 answers

Google Location services Android

I am using google fused location API and I was able to successfully implement it but it appears like this I have the logs: Location[fused 31******,30****** acc=27 et=+16h8m55s272ms] I can't figure the problem.
Assem Mahrous
  • 411
  • 3
  • 15
0
votes
1 answer

Android 2.3.x crashing on com.google.android.gms.location.LocationSettingsResult.startResolutionForResult

I'm in middle of a big issue, OS VERSION: Android 2.3.x DEVICE: GT i9100 (samsung galaxy s II) LOCATION API: com.google.android.gms:play-services-location:9.4.0 PROBLEM: app crash calling…
Sam
  • 4,046
  • 8
  • 31
  • 47
0
votes
1 answer

Does Google Location Services' getLastLocation method start the GPS in Android app?

I have an app that, when a certain activity starts, needs to fill in one field with the current address. I'm not sure the way I'm doing it ever updates the gps coordinates unless another app, that uses gps, is started. I can get the address with the…
Mathias Rönnlund
  • 4,078
  • 7
  • 43
  • 96
0
votes
1 answer

Get the Location Name in onLocationChanged(Location location) method

I want to get the location-name inside onLocationChanged(Location location)() method. We can get the Latitude and Longitude from onLocationChanged(Location location) as location.getLatitude(); and location.getLongitude(); But i need the location…
0
votes
0 answers

Google Map Android API: .apk file works fine on my phone but not on friend's device

I am currently developing an app together with a friend of mine and I'm using the following code to acquire my current location: public class AdressPopup extends Activity implements GoogleApiClient.ConnectionCallbacks, …
0
votes
1 answer

Android: Null location when using GoogleApiClient

Hello I'm currently trying to obtain the latitude and altitude values for my Android device using the GoogleApiClient. I've been following the guide here: GoogleApiClient: Last Known Location Guide I'm also trying to do this from my Service and not…
0
votes
2 answers

"GoogleApiClient is not connected yet" error in IntentService

I'm creating an app that uses an AlarmManager in an IntentService to check for user's location every 30 minutes with the help of GoogleAPIClient. I'm getting this error when onHandleIntent() fires in my service: FATAL EXCEPTION:…