<uses-permission android:name="android.permission.ACCESS_MOCK_LOCATION">
Location mockLocation = new Location(mocLocationProvider); mockLocation.setLatitude(-34.000); mockLocation.setLongitude(72.000); mockLocation.setAltitude(2000); mockLocation.setTime(1359043067); locationManager.setTestProviderLocation( mocLocationProvider, mockLocation);
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.