Android Open Source - simple-sqlite Main Application






From Project

Back to project page simple-sqlite.

License

The source code is released under:

Apache License

If you think the Android project simple-sqlite 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.aldobo.simple.sqlite.sample;
//from  w ww  .  java  2s  . c  o m

import android.app.Application;

import com.aldobo.simple.sqlite.SQLiteConfiguration;
import com.aldobo.simple.sqlite.SQLiteManager;
import com.aldobo.simple.sqlite.sample.models.*;

public class MainApplication extends Application {

    @Override
    public void onCreate() {
        super.onCreate();
        SQLiteConfiguration configuration = new SQLiteConfiguration.Builder()
                .setDatabaseName("my_database.db")
                .setDatabaseVersion(9)
                .registerTable(Person.class)
                .build();
        SQLiteManager.setConfiguration(configuration);

    }
}




Java Source Code List

com.aldobo.simple.sqlite.SQLiteConfiguration.java
com.aldobo.simple.sqlite.SQLiteManager.java
com.aldobo.simple.sqlite.SQLiteOpenHelperApp.java
com.aldobo.simple.sqlite.SQLiteOpenHelperExtendable.java
com.aldobo.simple.sqlite.entities.Field.java
com.aldobo.simple.sqlite.entities.Model.java
com.aldobo.simple.sqlite.entities.SQLiteDefaultValue.java
com.aldobo.simple.sqlite.entities.SQLiteType.java
com.aldobo.simple.sqlite.entities.Schema.java
com.aldobo.simple.sqlite.sample.MainActivity.java
com.aldobo.simple.sqlite.sample.MainApplication.java
com.aldobo.simple.sqlite.sample.fragments.BaseFragment.java
com.aldobo.simple.sqlite.sample.fragments.MyListFragment.java
com.aldobo.simple.sqlite.sample.models.Person.java
com.aldobo.simple.sqlite.tags.Column.java
com.aldobo.simple.sqlite.tags.Table.java
com.aldobo.simple.sqlite.utils.ModelIterable.java
com.aldobo.simple.sqlite.utils.Utils.java