Skip to content

Instantly share code, notes, and snippets.

View abender's full-sized avatar

Andreas Bender abender

View GitHub Profile
@abender
abender / AbstractDb.java
Last active October 27, 2019 14:53
A simple Android SQLite template to use databases. The example table holds information about users and their corresponding password. (It's only an example to show the usage so the passwords aren't encrypted by the sample code.)
package de.databasetemplate.db;
import java.util.HashMap;
import java.util.Map;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.util.Log;