Code example for Location

Methods: setProvidersetTime

0
		protected static Location renameSource(Location location,
				final String source, final long time) {
			if (location == null) {
				return null; 
			} 
			location = new Location(location);
			location.setProvider(source);
			location.setTime(time);
			return location;
		} 
 
		public android.location.Location calculateLocation(
				final Collection<Location> values, final int minAccuracy) {
			if (values == null || values.size() == 0) {
				return null; 
			} 
			float lat = 0;
			float lon = 0;
			float acc = 0;
			float minacc = Float.MAX_VALUE;
			int n = 0;