Permalink
Browse files

Run on a single static port

Change-Id: I79c14b91cec28416cd6b954e18f04eed184d59fe
Reviewed-on: http://review.couchbase.org/9464
Reviewed-by: Farshid Ghods <farshid.ghods@gmail.com>
Tested-by: Farshid Ghods <farshid.ghods@gmail.com>
  • Loading branch information...
1 parent 7144202 commit 4114c56539772d86d16dd26465b3fe29d2ea5319 @daleharvey daleharvey committed with farshidce Sep 8, 2011
Showing with 11 additions and 0 deletions.
  1. +2 −0 assets/emptyapp.ini
  2. +9 −0 src/com/couchbase/emptyapp/EmptyAppActivity.java
View
@@ -0,0 +1,2 @@
+[httpd]
+port = 5984
@@ -1,5 +1,7 @@
package com.couchbase.emptyapp;
+import java.io.IOException;
+
import android.app.Activity;
import android.content.ServiceConnection;
import android.os.Bundle;
@@ -22,6 +24,13 @@ public void onCreate(Bundle savedInstanceState) {
setContentView(R.layout.main);
CouchbaseMobile couch = new CouchbaseMobile(getBaseContext(), mDelegate);
+
+ try {
+ couch.copyIniFile("emptyapp.ini");
+ } catch (IOException e) {
+ e.printStackTrace();
+ }
+
couchServiceConnection = couch.startCouchbase();
}

0 comments on commit 4114c56

Please sign in to comment.