app/src/main/java/com/adroitdevs/belanja/TasksModel.java
private void loadReplicationSettings() throws URISyntaxException {

        // Set up the replicator objects.
        URI uri = this.createServerURI();

        mPullReplicator = ReplicatorBuilder.pull().to(mDatastore).from(uri).build();
        mPushReplicator = ReplicatorBuilder.push().from(mDatastore).to(uri).build();

        // Registers this class to listen to replication events, complete and error functions below.
        mPushReplicator.getEventBus().register(this);
        mPullReplicator.getEventBus().register(this);

        Log.d(LOG_TAG, "Set up replicators for URI:" + uri.toString());
    }
/**
     * Loads the replication settings from cloudant_credentials.xml.
     */
Loads the replication settings from cloudant_credentials.xml.
Loads the replication settings from cloudant_credentials . xml .
private void loadReplicationSettings() throws URISyntaxException {
        URI uri = this.createServerURI();
        mPullReplicator = ReplicatorBuilder.pull().to(mDatastore).from(uri).build();
        mPushReplicator = ReplicatorBuilder.push().from(mDatastore).to(uri).build();
        mPushReplicator.getEventBus().register(this);
        mPullReplicator.getEventBus().register(this);
        Log.d(LOG_TAG, "Set up replicators for URI:" + uri.toString());
    }
private void loadReplicationSettings ( ) throws URISyntaxException { URI uri = this . createServerURI ( ) ; mPullReplicator = ReplicatorBuilder . pull ( ) . to ( mDatastore ) . from ( uri ) . build ( ) ; mPushReplicator = ReplicatorBuilder . push ( ) . from ( mDatastore ) . to ( uri ) . build ( ) ; mPushReplicator . getEventBus ( ) . register ( this ) ; mPullReplicator . getEventBus ( ) . register ( this ) ; Log . d ( LOG_TAG , "Set up replicators for URI:" + uri . toString ( ) ) ; }
Loads the replication settings from cloudant_credentials.xml.
Loads the replication settings from cloudant_credentials . xml .
// Set up the replicator objects. // Registers this class to listen to replication events, complete and error functions below.