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();
		 
	} 
Connect your IDE to all the code out there  Get Codota for Java