@ Override public void onCreate ( SQLiteDatabase db ) { try { if ( builder . tables == null ) { throw new SQLiteHelperException ( "The array of String tables can't be null!!" ) ; } executePragma ( db ) ; builder . onCreateCallback . onCreate ( db ) ; } catch ( SQLiteHelperException e ) { Log . e ( this . getClass ( ) . toString ( ) , Log . getStackTraceString ( e ) , e ) ; } }
Called when the database is created for the first time . This is where the creation of tables and the initial population of the tables should happen .