Code example for LocationClient

Methods: connect

0
    private void bootstrapLocationHelper() { 
        if (hasPlayServices) {
            // Setup the listener 
            mLocationClientListener = new LocationClientListener();
 
            mLocationClient = new LocationClient(mContext, mLocationClientListener, mLocationClientListener);
            mLocationClient.connect();
        } 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");
                return; 
            } 
 
            // Setup the listener 
            mLocationManagerListener = new LocationManagerListener();
Connect your IDE to all the code out there  Get Codota for Java