Search in sources :

Example 1 with LoadDB

use of com.keepassdroid.database.edit.LoadDB in project KeePassDX by Kunzisoft.

the class PasswordActivity method loadDatabase.

private void loadDatabase(String pass, Uri keyfile) {
    // Clear before we load
    Database db = App.getDB();
    db.clear();
    // Clear the shutdown flag
    App.clearShutdown();
    Handler handler = new Handler();
    AfterLoad afterLoad = new AfterLoad(handler, db);
    LoadDB task = new LoadDB(db, PasswordActivity.this, mDbUri, pass, keyfile, afterLoad);
    ProgressTask pt = new ProgressTask(PasswordActivity.this, task, R.string.loading_database);
    pt.run();
}
Also used : ProgressTask(com.keepassdroid.tasks.ProgressTask) Database(com.keepassdroid.database.Database) Handler(android.os.Handler) LoadDB(com.keepassdroid.database.edit.LoadDB)

Aggregations

Handler (android.os.Handler)1 Database (com.keepassdroid.database.Database)1 LoadDB (com.keepassdroid.database.edit.LoadDB)1 ProgressTask (com.keepassdroid.tasks.ProgressTask)1