Android : Android LocationClient mock location not set

on Thursday, July 10, 2014


I'm trying to mock locations using the Play Services LocationClient. I have:



  1. Added the ACCESS_MOCK_LOCATION permission.

  2. Called setMockMode(true) on my LocationClient

  3. Called setMockLocation(Location)


However, when I call getLastLocation(), I always get null. No updates are pushed to the LocationListener, and the null never changes.


0 comments:

Post a Comment