Questions tagged [location-client]

The LocationClient is the main entry point for location related APIs, such as location and geofence.

The LocationClient is the main entry point for location related APIs, such as location and geofence.

Use the LocationClient to:

  • Connect and disconnect to Google Location Services.
  • Request/remove location update callbacks.
  • Request/remove geofences.
  • 84 questions
    1
    vote
    0 answers

    Is there any way to get the number of satellite without LocationProvider?

    I'm using LocationClient (a part of Google Play service) to get the current location. It works well, but I can't find any way to get the number of satellites without using LocationProvider. mService_NORMAL = new LocationProvider(mParent, 10000, 1,…
    1
    vote
    0 answers

    Android - gps tracking service by google location client

    I use locationclient to get location in my app (use this lesson of google https://developer.android.com/training/location/retrieve-current.html) with Timer to track location. It ok but my app have some activity, when i finish activity main, tracking…
    Unoken Mouny
    • 157
    • 1
    • 3
    • 14
    1
    vote
    0 answers

    How to use the JLocationClient Interface to set mock locations?

    I'm wanting to make a location simulator to test other application which I'm doing. My intention is to load a KML file (coordinate points) in a list and go through each of these points to test another application that I'm doing. There are some apps…
    1
    vote
    1 answer

    Check if Android app LocationClient is requesting location updates

    I am calling requestLocationUpdates with a PendingIntent. Later I want to know whether this request is still active. How can I do this? I know whether I have called removeLocationUpdates but I expect there could be other ways that location updates…
    cja
    • 9,512
    • 21
    • 75
    • 129
    1
    vote
    0 answers

    Android current location is returned null

    I use LocationClient to get current location and if it fails then use LocationManager. Some times I don't get current location of device. If it is getting location of device then it keeps getting every time I try and, if it is not able to get…
    Geek
    • 8,280
    • 17
    • 73
    • 137
    1
    vote
    1 answer

    Best way to get locations regularly using LocationClient?

    I'm using a LocationClient to get the current location every minute: mLocationRequest =…
    Biggie
    • 7,037
    • 10
    • 33
    • 42
    1
    vote
    3 answers

    Is it possible to get address from lat long from only GPS while my wi-fi and mobile data is off?

    I am testing an app which takes latitude and longitude with help of GPS in Samsung Tablet. I am able to capture current latitude, longitude from GPS unit. Now I want to get address from these location using latitude longitude without use of Internet…
    Teekam
    • 939
    • 4
    • 14
    • 26
    1
    vote
    1 answer

    Location Client returned location not returning the speed

    In my android application i am using location manager to get the location . It works fine in below android 4.0.But in the later versions of android I find it difficult to get the network location in this Location manager API.That is location changed…
    senthil prabhu
    • 487
    • 1
    • 7
    • 14
    1
    vote
    1 answer

    googleplayservices Locationclient works in offline mode

    I am using a location client in offline mode. The app is supposed to fetch the location every 10 secs. If the wifi or mobile data is on, will it fetch the location using the mobile data? I don't want the user to be paid for every 10 secs just for…
    Ari
    • 1,296
    • 1
    • 18
    • 36
    1
    vote
    1 answer

    setFastestInterval(long milis) not working

    I want to slow the update rates as soon as I got a location precise enough for my needs: @Override public void slowUpdateRate() { /* * Set the update interval */ Dbg.v(TAG,"****************************"); Dbg.e(TAG, "--…
    Poutrathor
    • 1,990
    • 2
    • 20
    • 44
    1
    vote
    1 answer

    Use one LocationClient for Current Location and Geofence or use two different LocationClient

    I have created one class called LocationHelper to get the current location of the phone. With that info I show a list of Shops and the distance to my current position. I used one LocationClient and LocationRequest, on the event onLocationChanged I…
    Mark Comix
    • 1,878
    • 7
    • 28
    • 44
    1
    vote
    0 answers

    Can google map V2 (Android) location update work with Cell Tower ONLY?

    I have been developing an Android App using google maps API v2 and implements LocationClient to retrieve user's current location. The problem is if the wifi and gps are not enabled, only mobile network (with H+ connection) is enabled, the…
    1
    vote
    1 answer

    Android activity recognition and location client

    I want to use an ActivityRecognitionClient and a LocationClient in the same Activity. The trouble is that either calls onConnected. I would like to use both e.g. to write the location and the recognized activity to a database. I thought that should…
    0
    votes
    2 answers

    Geofence understanding Geofence lifetime

    I've built Geofence as: GeofenceModel modelExit = new GeofenceModel.Builder("id_oi_456") .setTransition(Geofence.GEOFENCE_TRANSITION_DWELL) .setExpiration(Geofence.NEVER_EXPIRE) …
    Farid
    • 2,317
    • 1
    • 20
    • 34
    0
    votes
    1 answer

    Geofence triggering procedure explanation needed?

    SO I've created geofence as below: GeofenceModel modelExit = new GeofenceModel.Builder("id_oi_456") .setTransition(Geofence.GEOFENCE_TRANSITION_DWELL) .setExpiration(Geofence.NEVER_EXPIRE) …
    Farid
    • 2,317
    • 1
    • 20
    • 34