From cca45d8e6365af246d5f12973a0915e2f023186c Mon Sep 17 00:00:00 2001 From: maxwellpettit Date: Fri, 26 Jan 2018 15:42:13 -0500 Subject: [PATCH] Update Android Documentation --- symmetric-assemble/src/asciidoc/developer.ad | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/symmetric-assemble/src/asciidoc/developer.ad b/symmetric-assemble/src/asciidoc/developer.ad index 0e8e05e584..8b76abc866 100644 --- a/symmetric-assemble/src/asciidoc/developer.ad +++ b/symmetric-assemble/src/asciidoc/developer.ad @@ -195,16 +195,16 @@ Console in Android Studio. Let the apk install on the emulator. Now watch the Lo Master Node. The core functionality of SymmetricDS on Android is implemented by starting the SymmetricService class as an Android service. This requires -building the SymmetricDS Android libraries using the steps mentioned above and adding them to your Android project’s dependencies.  +building the SymmetricDS Android libraries using the steps mentioned above and adding them to your Android project's dependencies. The SymmetricService Intent is defined in the AndroidManifest.xml using the following XML snippet: [source, xml] ---- - - - + + + ---- @@ -212,7 +212,7 @@ The SymmetricService Intent is started using the following java code: [source, java] ---- -Intent intent = new Intent(getContext(), SymmetricService.class); +Intent intent = new Intent(getContext(), SymmetricService.class); // Replace extras with desired node configuration intent.putExtra(SymmetricService.INTENTKEY_SQLITEOPENHELPER_REGISTRY_KEY, DATABASE_NAME); @@ -224,10 +224,10 @@ intent.putExtra(SymmetricService.INTENTKEY_START_IN_BACKGROUND, true); Properties properties = new Properties(); // Put any additional SymmetricDS parameters into properties intent.putExtra(SymmetricService.INTENTKEY_PROPERTIES, properties); - getContext().startService(intent); ---- + === Embedding in C/C++ A minimal implementation of the SymmetricDS client is written in C, which includes a shared library named "libsymclient" and a command line executable named "sym" for synchronizing a database. It currently only supports the SQLite database. The SymmetricDS C library and client are built