- public static final String OPT_TRANSACTION_LIST_STAMP = "transaction_list_last_update";
- private static MobileLedgerDatabase helperForReading, helperForWriting;
-
- public static synchronized SQLiteDatabase getDatabase(Context context, DatabaseMode mode) {
- if (mode == READ) {
- if (helperForReading == null) helperForReading = new MobileLedgerDatabase(context);
- return helperForReading.getReadableDatabase();
- }
- else {
- if (helperForWriting == null) helperForWriting = new MobileLedgerDatabase(context);
- return helperForWriting.getWritableDatabase();
- }
- }
- public static SQLiteDatabase getReadableDatabase(Context context) {
- return getDatabase(context, READ);
- }
- public static SQLiteDatabase getWritableDatabase(Context context) {
- return getDatabase(context, WRITE);
- }
- static public int get_option_value(Context context, String name, int default_value) {
- String s = get_option_value(context, name, String.valueOf(default_value));
+ public static final String OPT_LAST_SCRAPE = "last_scrape";
+ @NonNls
+ public static final String OPT_PROFILE_UUID = "profile_uuid";
+ private static final String NO_PROFILE = "-";
+ @SuppressWarnings("unused")
+ static public int getIntOption(String name, int default_value) {
+ String s = getOption(name, String.valueOf(default_value));