Back to project page android-sqlite-server.
The source code is released under:
Apache License
If you think the Android project android-sqlite-server listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package org.devtcg.sqliteserver.sample; // ww w . j a v a 2 s .c om import android.database.sqlite.SQLiteDatabase; import org.devtcg.sqliteserver.SQLiteServiceServer; public class TestService extends SQLiteServiceServer { private static final String DB_NAME = "test_server.db"; private static final int DB_VERSION = 1; @Override public SQLiteDatabase getWritableDatabase() { return new MyOpenHelper(this, DB_NAME, DB_VERSION).getWritableDatabase(); } @Override public String getServerName() { return getClass().getName(); } }