@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); mGoogleApiClient = new GoogleApiClient.Builder(this) .addConnectionCallbacks(this) .addOnConnectionFailedListener(this) .addApi(Wearable.API) .build(); }
protected synchronized void buildGoogleApiClient() { Log.i(TAG, "Building GoogleApiClient"); mGoogleApiClient = new GoogleApiClient.Builder(this) .addConnectionCallbacks(this) .addOnConnectionFailedListener(this) .addApi(LocationServices.API) .build(); createLocationRequest(); }
protected synchronized void buildGoogleApiClient() { mGoogleApiClient = new GoogleApiClient.Builder(this) .addConnectionCallbacks(this) .addOnConnectionFailedListener(this) .addApi(LocationServices.API) .build(); }
/** * Connect google api client. */ private void connectGoogleApiClient() { mGoogleApiClient = new GoogleApiClient.Builder(this) .addApi(Wearable.API) .addConnectionCallbacks(this) .addOnConnectionFailedListener(this) .build(); mGoogleApiClient.connect(); }
@Override public void onCreate() { super.onCreate(); mGoogleApiClient = new GoogleApiClient.Builder(this) .addApi(Wearable.API) .addConnectionCallbacks(this) .addOnConnectionFailedListener(this) .build(); }
private void connectGoogleApiClient() { mGoogleApiClient = new GoogleApiClient.Builder(this) .addApi(Wearable.API) .addConnectionCallbacks(this) .addOnConnectionFailedListener(this) .build(); mGoogleApiClient.connect(); }
/** * Build the google api client to use awareness apis. */ private void buildApiClient() { mGoogleApiClient = new GoogleApiClient.Builder(SnapshotApiActivity.this) .addApi(Awareness.API) .addConnectionCallbacks(this) .build(); mGoogleApiClient.connect(); }
/** * Build the google api client to use awareness apis. */ private void buildApiClient() { mGoogleApiClient = new GoogleApiClient.Builder(this) .addApi(Awareness.API) .addConnectionCallbacks(this) .build(); mGoogleApiClient.connect(); }
public void track(){ mGoogleApiClient = new GoogleApiClient.Builder(ctx) .addConnectionCallbacks(this) .addOnConnectionFailedListener(this) .addApi(LocationServices.API) .build(); mGoogleApiClient.connect(); mLocationRequest = LocationRequest.create() .setPriority(LocationRequest.PRIORITY_HIGH_ACCURACY) .setInterval(10 * 1000) // 10 seconds, in milliseconds .setFastestInterval(1 * 1000); // 1 second, in milliseconds }
public WearUtil(Context context) { mGoogleApiClient = new GoogleApiClient.Builder(context) .addApi(Wearable.API) .addConnectionCallbacks(this) .addOnConnectionFailedListener(this) .build(); } public void conectar() {
@Override public void onCreate() { super.onCreate(); mGoogleApiClient = new GoogleApiClient.Builder(this) .addApi(Wearable.API) .addConnectionCallbacks(this) .addOnConnectionFailedListener(this) .build(); }
@Override public void onCreate() { super.onCreate(); mGoogleApiClient = new GoogleApiClient.Builder(this) .addApi(Wearable.API) .addConnectionCallbacks(this) .addOnConnectionFailedListener(this) .build(); }
public void logOutGoogleAuth() { GoogleSignInOptions googleSignInOptions = new GoogleSignInOptions.Builder(GoogleSignInOptions.DEFAULT_SIGN_IN) .requestEmail() .requestIdToken(BuildConfig.GOOGLE_CLIENT_ID) .build(); mGoogleApiClient = new GoogleApiClient.Builder(ZulipApp.get()) .addApi(Auth.GOOGLE_SIGN_IN_API, googleSignInOptions) .addConnectionCallbacks(this) .build(); mGoogleApiClient.connect(); }
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); mGoogleApiClient = new GoogleApiClient.Builder(mContext) .addConnectionCallbacks(this) .addOnConnectionFailedListener(this) .addApi(Plus.API) .addScope(Plus.SCOPE_PLUS_PROFILE) .build(); }
private void init(final Context context, final GoogleApiClient.ConnectionCallbacks listener) { if (mGoogleApiClient != null) return; mGoogleApiClient = new GoogleApiClient.Builder(context) .addApiIfAvailable(Wearable.API) .addConnectionCallbacks(listener) .build(); mGoogleApiClient.connect(); }
GooglePlayServicesLocationSource(Context context, LocationRequest locationRequest, SourceListener sourceListener) { this.sourceListener = sourceListener; this.locationRequest = locationRequest; this.googleApiClient = new Builder(context) .addApi(LocationServices.API) .addConnectionCallbacks(this) .addOnConnectionFailedListener(this) .build(); }
private synchronized void buildGoogleApiClient(Context context) { googleApiClient = new GoogleApiClient.Builder(context) .addConnectionCallbacks(this) .addOnConnectionFailedListener(this) .addApi(LocationServices.API) .build(); }
private void initGoogleAPi() { mGoogleApiClient = new GoogleApiClient .Builder(this) .addApi(Places.GEO_DATA_API) .addApi(Places.PLACE_DETECTION_API) .addConnectionCallbacks(this) .addOnConnectionFailedListener(this) .build(); }
protected void initPlayServices() { playServices= configureApiClientBuilder(new GoogleApiClient.Builder(this)) .addConnectionCallbacks(this) .addOnConnectionFailedListener(this) .build(); }
protected void initPlayServices() { playServices= configureApiClientBuilder(new GoogleApiClient.Builder(this)) .addConnectionCallbacks(this) .addOnConnectionFailedListener(this) .build(); }