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);
String mockLocationProvider = LocationManager.GPS_PROVIDER;
Location mockLocation = new Location(mocLocationProvider);
mockLocation.setLatitude(1d);
mockLocation.setLongitude(1d);
No comments:
Post a Comment