Android Open Source - sqlite-provider Novoda Application

From Project

Back to project page sqlite-provider.


The source code is released under:

Apache License

If you think the Android project sqlite-provider listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.novoda.sqliteprovider.demo;
/*from  w w  w.j  a  va2 s  .  co m*/

import com.novoda.sqliteprovider.demo.persistance.DatabaseReader;
import com.novoda.sqliteprovider.demo.persistance.DatabaseWriter;
import com.novoda.sqliteprovider.demo.persistance.FireworkReader;
import com.novoda.sqliteprovider.demo.persistance.FireworkWriter;

public class NovodaApplication extends Application {

    private DatabaseReader databaseReader;
    private DatabaseWriter databaseWriter;
    private FireworkReader fireworkReader;
    private FireworkWriter fireworkWriter;

    private DatabaseReader getDatabaseReader() {
        if (databaseReader == null) {
            databaseReader = new DatabaseReader(getContentResolver());
        return databaseReader;

    private DatabaseWriter getDatabaseWriter() {
        if (databaseWriter == null) {
            databaseWriter = new DatabaseWriter(getContentResolver());
        return databaseWriter;

    public final FireworkReader getFireworkReader() {
        if (fireworkReader == null) {
            fireworkReader = new FireworkReader(getDatabaseReader());
        return fireworkReader;

    public final FireworkWriter getFireworkWriter() {
        if (fireworkWriter == null) {
            fireworkWriter = new FireworkWriter(getDatabaseWriter());
        return fireworkWriter;

Java Source Code List