Tasks/src/main/java/com/dummies/tasks/provider/TaskProvider.java
@Override
    public boolean onCreate() {
        // Grab a connection to our database
        db = new DatabaseHelper(getContext()).getWritableDatabase();

        googleApiClient = new GoogleApiClient.Builder(getContext())
                .addApi(Wearable.API)
                .addConnectionCallbacks(this)
                .addOnConnectionFailedListener(this)
                .build();
        googleApiClient.connect();

        return true;
    }
/**
     * This method is called when our ContentProvider is created
     */
This method is called when our ContentProvider is created
This method is called when our ContentProvider is created
@Override
    public boolean onCreate() {
        db = new DatabaseHelper(getContext()).getWritableDatabase();
        googleApiClient = new GoogleApiClient.Builder(getContext())
                .addApi(Wearable.API)
                .addConnectionCallbacks(this)
                .addOnConnectionFailedListener(this)
                .build();
        googleApiClient.connect();
        return true;
    }
@ Override public boolean onCreate ( ) { db = new DatabaseHelper ( getContext ( ) ) . getWritableDatabase ( ) ; googleApiClient = new GoogleApiClient . Builder ( getContext ( ) ) . addApi ( Wearable . API ) . addConnectionCallbacks ( this ) . addOnConnectionFailedListener ( this ) . build ( ) ; googleApiClient . connect ( ) ; return true ; }
This method is called when our ContentProvider is created
This method is called when our ContentProvider is created
// Grab a connection to our database