This is the simplest code for CRUD using Couchbase Lite on Android.
Entire thing is written in PlaceholderFragment
inside
MainActivity.java
Note: This is really simple thing. Just for reference and getting started.
package com.iraycd.testcouchdblite.utils;
public class Keys {
public static final String DB_NAME = "testdb";
public static final String KEY_MAIL = "email";
public static final String KEY_REG = "registered";
public static final String KEY_SCORES = "scores";
}
This is how I stored the keys.
- Use Android Studio.
- Run the application.
- You will see the output.