You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.markdown
+22-26Lines changed: 22 additions & 26 deletions
Original file line number
Diff line number
Diff line change
@@ -8,12 +8,6 @@ What this means for you:
8
8
* Your Android apps can use Apache CouchDB's well-proven synchronization technology.
9
9
* If you <3 CouchApps, you can deploy them as Android apps.
10
10
11
-
### Beta Release
12
-
13
-
If you just want to get started, jump to **Getting Started**.
14
-
15
-
The biggest thing we need help with is size optimization - currently a Release build adds about 4 MB to your application (reported as 13MB).
16
-
17
11
## Join us
18
12
19
13
There is a [Google Group here for Mobile Couchbase](https://groups.google.com/group/mobile-couchbase). Let's talk about how to optimize the Erlang build, what the best Java APIs are for CouchDB, how to take advantage of replication on mobile devices. It'll be fun.
@@ -28,37 +22,29 @@ If you have questions or get stuck or just want to say hi, email <mobile@couchba
28
22
29
23
These instructions require you to have installed Eclipse and the Android SDK, the [Android developer website](http://developer.android.com/sdk/installing.html) has instructions.
And ensure its opened in eclipse (`File -> Import -> Existing Projects`)
38
32
39
-
Then start a new Android project `File -> New Project -> Android Project` and follow the wizard.
40
-
41
-
You will need to add some dependancies so your project can see Android-Couchbase. Right click your project and select `Properties -> Android` and on the lower libraries panel press "Add" and select the LibCouch project.
42
-
43
-
Copy `assets/couchbase-$RELEASE_VERSION.tgz.jpg` from Android-Couchbase/assets into your projects assets directory
33
+
## Setting up the Android-Couchbase library
44
34
45
-
back in the properties dialog pick Java Build Path -> Libraries and Add JARS, navigate to LibCouch/lib and choose `commons-io.2.0.1.jar`
35
+
If you have not already done so, you can start a new Android project with `File -> New Project -> Android Project`.
46
36
47
-
Inside your AndroidManifest.xmlyou will need the following definitions inside the <manifest> tag
37
+
Inside the Couchbase project there is a file `scripts/add-couchbase-to-project.xml`, right click on this file and `Run as -> Ant Build`you will be prompted for 2 paths, these will be stored in the `build.properties`
`Android SDK`: This is the location you installed the SDK into, the folder will look something like `android-sdk-mac_x86`, (`$ type -p android` may help you find its location, remember to strip the `/tools/android` from that path)
52
40
53
-
The following code is what is needed in your application to start Couchbase as a service
41
+
`Project Path`: This is the path to the Root of your application, Right clicking on your project and selecting `Properties -> Resource` will show you its location.
54
42
55
-
as well as
43
+
After you have ran this step you will need to `Refresh` your project (`F5` or `Right Click -> Refresh`)
CouchbaseMobile couch = new CouchbaseMobile(getBaseContext(), mCallback);
62
+
couchServiceConnection = couch.startCouchbase();
63
+
}
76
64
77
65
For examples please look at https://github.com/couchbase/Android-EmptyApp
78
66
67
+
## Use Existing Application
68
+
69
+
If you have downloaded EmptyApp or other applications that have already been setup to use Android-Couchbase, you may need to reconfigure some options for your system, open the `build.properties` file and correct the following variables:
70
+
71
+
`sdk.dir`: This is the location you installed the SDK into, the folder will look something like `android-sdk-mac_x86`, (`$ type -p android` may help you find its location, remember to strip the `/tools/android` from that path)
72
+
73
+
`android.couchbase.dir`: This is the path to Android-Couchbase, Right clicking on the Android-Couchbase project and selecting `Properties -> Resource` will show you its location.
74
+
79
75
## Build information
80
76
81
77
The current build of Android Couchbase embed the CouchDB binaries. There is information on how to build these binaries on the [SourceBuild](https://github.com/couchbase/Android-Couchbase-SourceBuild) project.
0 commit comments