Code example for Location

Methods: getAccuracygetLatitudegetLongitudegetProvidergetTime

0
	public void setTriggerLocation(Location loc) {
		if(loc == null) {
			return; 
		} 
 
		mTrigLocLat = loc.getLatitude();
		mTrigLocLong = loc.getLongitude();
		mTrigLocAccuracy = loc.getAccuracy();
		mTrigLocProvider = loc.getProvider();
		mTrigLocTime = loc.getTime();
	} 
	 
	/* 
	 * Format millisecond time stamp in human readable form 
	 */ 
	private String millisToFormatedTimeStamp(long millis) {
		SimpleDateFormat dateFormat = new SimpleDateFormat(TIME_STAMP_FORMAT);
		return  dateFormat.format(new Date(millis));
	} 
	 
Stop searching for code, let great code find you!  Add Codota to your java IDE