This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public String[] parseSqlFile( InputStream input ) throws IOException | |
{ | |
BufferedReader reader = new BufferedReader( new InputStreamReader( input ) ); | |
String line; | |
StringBuilder sql = new StringBuilder(); | |
String multiLineComment = null; | |
while ( (line = reader.readLine()) != null ) { | |
// line = line.trim(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Repository extends SQLiteOpenHelper { | |
private static final int VERSION = 1; | |
private static final String DATABASE_NAME = "data.sqlite"; | |
private static File DATABASE_FILE; | |
// This is an indicator if we need to copy the | |
// database file. | |
private boolean mInvalidDatabaseFile = false; | |
private boolean mIsUpgraded = false; | |
private Context mContext; |