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();
}
Aggregations