Code example for LocationClient

0
 
	@Override 
	public void onCreate(Bundle savedInstanceState) {
		// NearmeMapFragment onCreate method stub 
		super.onCreate(savedInstanceState);
		mLocationClient = new LocationClient(getActivity(), this, this);
		request = LocationRequest.create();
		request.setInterval(LOCATION_INTERVAL);
		request.setFastestInterval(LOCATION_FASTEST_INTERVAL);
		request.setPriority(LocationRequest.PRIORITY_HIGH_ACCURACY);
 
	} 
 
	@Override 
	public void onStart() { 
		// NearmeMapFragment onStart method stub 
		super.onStart(); 
		mLocationClient.connect();
		 
	} 
Stop searching for code, let great code find you!  Add Codota to your java IDE