Friday 1 August 2014

Android: How to fake GPS

How to fake GPS on Android; e.g. when you use the emulator


String mockLocationProvider = LocationManager.GPS_PROVIDER;
Location mockLocation = new Location(mocLocationProvider);
mockLocation.setLatitude(1d);
mockLocation.setLongitude(1d);


No comments:

Post a Comment