Code example for Location

Methods: setLatitudesetLongitude

0
					latitude = savedInstanceState.getDouble(ParamIntent.ACTIVITY_SEARCH_LATITUDE, 0); 
					longitude = savedInstanceState.getDouble(ParamIntent.ACTIVITY_SEARCH_LONGITUDE, 0); 
					if ((latitude != 0) && (longitude != 0)) { 
						intentResult.putExtra(ParamIntent.ACTIVITY_SEARCH_LATITUDE, latitude); 
						intentResult.putExtra(ParamIntent.ACTIVITY_SEARCH_LONGITUDE, longitude); 
						Location location = new Location("GPS"); 
						location.setLatitude(latitude); 
						location.setLongitude(longitude); 
						getModelActivity().setLocalisation(location); 
					} 
					resultFragment.setIntentResult(intentResult); 
					getSupportFragmentManager().beginTransaction().replace(R.id.zoneWidgetResults, resultFragment).commit(); 
				} 
 
			} 
		} 
	} 
 
	/* 
	 * Interaction 
Experience pair programming with AI  Get Codota for Java