Code example for SQLiteOpenHelper

Methods: close

0
                DataProviderContract.DATE_TABLE_NAME); 
    } 
 
    // Closes the SQLite database helper class, to avoid memory leaks 
    public void close() { 
        mHelper.close();
    } 
     
    /** 
     * Defines a helper class that opens the SQLite database for this provider when a request is 
     * received. If the database doesn't yet exist, the helper creates it. 
     */ 
    private class DataProviderHelper extends SQLiteOpenHelper {
        /** 
         * Instantiates a new SQLite database using the supplied database name and version 
         * 
         * @param context The current context 
         */ 
        DataProviderHelper(Context context) {
            super(context,
                    DataProviderContract.DATABASE_NAME,