Just as a follow up, I tried the app in real conditions (going outside and 
moving), and it does work correctly.
I still don't know why it doesn't work with Fake GPS, but oh well...

-- 
BoD

On Monday, June 10, 2013 5:47:35 PM UTC+2, BoD wrote:
>
> Hi!
>
> I am trying to test my app that uses the "Fuse" location provider (from 
> Google Play Services), without having to be actually moving ;)
> In order to do so, I'm using the app "Fake GPS" (
> https://play.google.com/store/apps/details?id=com.lexa.fakegps).
> In the settings of this app, I checked Simulate moving, with an interval 
> of 5000ms and a distance of 500 meters.
>
> I can see the app works, since I see myself moving in the official Google 
> Maps app.
>
> In the system settings, in Location access, I checked 'GPS satellites', 
> and unchecked 'Wi-Fi / mobile network'.
>
> Now here is the code I use in my app:
>
>                 LocationRequest locationRequest = LocationRequest.create();
>                 
> locationRequest.setPriority(LocationRequest.PRIORITY_BALANCED_POWER_ACCURACY);
>                 locationRequest.setInterval(60 * 1000);
>                 locationRequest.setFastestInterval(30 * 1000);
>                 locationRequest.setSmallestDisplacement(50);
>
>                 mLocationClient.requestLocationUpdates(locationRequest, 
> getLocationUpdatesPendingIntent());
>
>
> My problem is, even though the Fake GPS app is "moving", my service is 
> called only once.  I don't receive any subsequent location changes.
> I was expected to be notified about once or twice every minute.
>
> What could be the problem?
>
> Thanks for your help,
>
> -- 
> BoD
>

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to