Code example for LocationManager

Methods: setTestProviderLocation

0
			location.setLongitude(Double.valueOf(positions[1]));
			location.setTime(System.currentTimeMillis());
			location.setBearing(bearing);
			logger.d("NEW LOCATION: "+location.getBearing()+"; "+location.getLatitude()+"; "+location.getLongitude());
			logger.d("Current position found in car queue is "+(currentIndex+1));
			manager.setTestProviderLocation(name, location);
	} 
 
	public void setup(int counter, int peersNumber) {
		isSetup = true;
		logger.d("File counter: "+counter+"; peers number: "+peersNumber);
		this.counter = counter;
		this.peersNumber = peersNumber;
	} 
	 
	public boolean isSetup() { 
		return isSetup;
	} 
} 
Connect your IDE to all the code out there  Get Codota for Java