Code example for LocationClient

Methods: connect

    private void bootstrapLocationHelper() { 
        if (hasPlayServices) {
            // Setup the listener 
            mLocationClientListener = new LocationClientListener();
            mLocationClient = new LocationClient(mContext, mLocationClientListener, mLocationClientListener);
        } else { 
            mLocationManager = (LocationManager) mContext.getSystemService(Context.LOCATION_SERVICE);
            final Criteria criteria = getDefaultCriteria();
            final String provider = mLocationManager.getBestProvider(criteria, true);
            if (TextUtils.isEmpty(provider)) {
                FLog.w(mContext, TAG, "No provider available, unable to bootstrap location");
            // Setup the listener 
            mLocationManagerListener = new LocationManagerListener();
Connect your IDE to all the code out there  Get Codota for Java