We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
This guide will help you get started with TouchDB-Android and perform your first replication.
{ TDURLStreamHandlerFactory.registerSelfIgnoreError(); }
// start TouchDB TDServer server = null; String filesDir = getFilesDir().getAbsolutePath(); try { server = new TDServer(filesDir); } catch (IOException e) { Log.e(TAG, "Error starting TDServer", e); } // start TouchDB-Ektorp adapter HttpClient httpClient = new TouchDBHttpClient(server); CouchDbInstance dbInstance = new StdCouchDbInstance(httpClient); // create a local database CouchDbConnector dbConnector = dbInstance.createConnector("testdb", true); // pull this database to the test replication server ReplicationCommand pullCommand = new ReplicationCommand.Builder() .source("https://example.iriscouch.com/example_db") .target("testdb") .continuous(true) .build(); ReplicationStatus status = dbInstance.replicate(pullCommand);