Skip to content

Commit

Permalink
Merge branch '3.9' of https://github.com/JumpMind/symmetric-ds into 3.9
Browse files Browse the repository at this point in the history
  • Loading branch information
klementinastojanovska committed Jan 26, 2018
2 parents 0144c54 + ca11db5 commit 0e36df8
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions symmetric-assemble/src/asciidoc/developer.ad
Expand Up @@ -195,24 +195,24 @@ 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 projects 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]
----
<service android:name="org.jumpmind.symmetric.android.SymmetricService" android:enabled="true" >
<intent-filter>
<action android:name="org.jumpmind.symmetric.android.SymmetricService" />
</intent-filter>
<intent-filter>
<action android:name="org.jumpmind.symmetric.android.SymmetricService" />
</intent-filter>
</service>
----

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);
Expand All @@ -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
Expand Down

0 comments on commit 0e36df8

Please sign in to comment.