Code example for LocationManager

Methods: setTestProviderLocation

0
			// show debug message in log 
			Log.d(TAG, location.toString());
 
			// provide the new location 
			LocationManager mLocationManager = (LocationManager) mContext.getSystemService(Context.LOCATION_SERVICE);
			mLocationManager.setTestProviderLocation(GPS_MOCK_PROVIDER, location);
		} 
		 
		private double getStep() { 
			return ((double) preferenceHelper.getSpeed())/100000;
		} 
		 
	} 
	 
} 
Experience pair programming with AI  Get Codota for Java