Skip to content

Instantly share code, notes, and snippets.

@parzibyte

parzibyte/onCreate.java Secret

Created Aug 30, 2020
Embed
What would you like to do?
@Override
public void onCreate(SQLiteDatabase sqLiteDatabase) {
String[] tablas = {
"CREATE TABLE canciones(nombre TEXT);",
"CREATE TABLE usuarios(id INT);",
// ...
};
for (String tabla : tablas) {
sqLiteDatabase.execSQL(tabla);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment