@Override public void onActivityResult(int requestCode, int resultCode, Intent data) { switch (requestCode) { case REQUEST_CODE_FILE: { if (resultCode == Activity.RESULT_OK && data != null) { // load data mImportActivity.loadCallback(null, data.getData(), null, null, null); } break; } default: super.onActivityResult(requestCode, resultCode, data); break; } }
private void search(String query, String keyserver) { mImportActivity.loadCallback(new ImportKeysListFragment.KeyserverLoaderState(query, keyserver)); }