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; //from ww w . j a v a 2s. com import android.database.sqlite.SQLiteDatabase; import org.devtcg.sqliteserver.SQLiteContentProviderServer; public class TestContentProvider extends SQLiteContentProviderServer { private static final String DB_NAME = "test_cp.db"; private static final int DB_VERSION = 2; static final String AUTHORITY = "org.devtcg.sqliteserver.testcp"; @Override public SQLiteDatabase getWritableDatabase() { return new MyOpenHelper(getContext(), DB_NAME, DB_VERSION).getWritableDatabase(); } @Override public String getServerName() { return getClass().getName(); } }