org.androidannotations.annotations.OnActivityResult Java Examples
The following examples show how to use
org.androidannotations.annotations.OnActivityResult.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: MenuListActivity.java From financisto with GNU General Public License v2.0 | 5 votes |
@OnActivityResult(MenuListItem.ACTIVITY_CSV_EXPORT) public void onCsvExportResult(int resultCode, Intent data) { if (resultCode == RESULT_OK) { CsvExportOptions options = CsvExportOptions.fromIntent(data); MenuListItem.doCsvExport(this, options); } }
Example #2
Source File: MenuListActivity.java From financisto with GNU General Public License v2.0 | 5 votes |
@OnActivityResult(MenuListItem.ACTIVITY_QIF_EXPORT) public void onQifExportResult(int resultCode, Intent data) { if (resultCode == RESULT_OK) { QifExportOptions options = QifExportOptions.fromIntent(data); MenuListItem.doQifExport(this, options); } }
Example #3
Source File: MenuListActivity.java From financisto with GNU General Public License v2.0 | 5 votes |
@OnActivityResult(MenuListItem.ACTIVITY_CSV_IMPORT) public void onCsvImportResult(int resultCode, Intent data) { if (resultCode == RESULT_OK) { CsvImportOptions options = CsvImportOptions.fromIntent(data); MenuListItem.doCsvImport(this, options); } }
Example #4
Source File: MenuListActivity.java From financisto with GNU General Public License v2.0 | 5 votes |
@OnActivityResult(MenuListItem.ACTIVITY_QIF_IMPORT) public void onQifImportResult(int resultCode, Intent data) { if (resultCode == RESULT_OK) { QifImportOptions options = QifImportOptions.fromIntent(data); MenuListItem.doQifImport(this, options); } }
Example #5
Source File: PDFViewActivity.java From AndroidPdfViewerV2 with Apache License 2.0 | 5 votes |
@OnActivityResult(REQUEST_CODE) public void onResult(int resultCode, Intent intent) { if (resultCode == RESULT_OK) { uri = intent.getData(); displayFromUri(uri); } }
Example #6
Source File: PDFViewActivity.java From AndroidPdfViewerV1 with Apache License 2.0 | 5 votes |
@OnActivityResult(REQUEST_CODE) public void onResult(int resultCode, Intent intent) { if (resultCode == RESULT_OK) { uri = intent.getData(); displayFromUri(uri); } }
Example #7
Source File: PDFViewActivity.java From AndroidPdfViewer with Apache License 2.0 | 5 votes |
@OnActivityResult(REQUEST_CODE) public void onResult(int resultCode, Intent intent) { if (resultCode == RESULT_OK) { uri = intent.getData(); displayFromUri(uri); } }
Example #8
Source File: MainSettingsFragment.java From wifi_backend with GNU General Public License v3.0 | 5 votes |
@OnActivityResult(EXPORT_REQUEST_CODE) protected void export(int resultCode, Intent intent) { if(resultCode == Activity.RESULT_OK) { ExportProgressDialog_.builder() .uri(intent.getData()) .build() .show(getFragmentManager()); } }
Example #9
Source File: MainSettingsFragment.java From wifi_backend with GNU General Public License v3.0 | 5 votes |
@OnActivityResult(IMPORT_REQUEST_CODE) protected void importResult(int resultCode, Intent intent) { if(resultCode == Activity.RESULT_OK) { ImportProgressDialog_.builder() .uri(intent.getData()) .build() .show(getFragmentManager()); } }
Example #10
Source File: ClassTable.java From iSCAU-Android with GNU General Public License v3.0 | 5 votes |
/** * 修改课程表后,接收来自修改课程表activiy回传的model,写入数据库,并且更新到界面; * @param resultCode * @param data */ @OnActivityResult(UIHelper.QUERY_FOR_EDIT_CLASS) void modifyClassOnResult(int resultCode,Intent data){ if(resultCode == getSherlockActivity().RESULT_OK){ ClassModel model = (ClassModel) data.getSerializableExtra("class"); createOrUpdateClassInformation(model); } }
Example #11
Source File: SettingsFragment.java From Local-GSM-Backend with Apache License 2.0 | 5 votes |
@AfterViews @OnActivityResult(REQUEST_EDIT_AREAS) protected void updateAreaView() { final Set<Integer> set = Settings.with(this).mccFilterSet(); if (set.isEmpty()) { areaList.setText(R.string.fragment_settings_card_areas_nothing_chosen); } else { final StringBuilder builder = new StringBuilder(); final MobileCountryCodes.Regions regions = MobileCountryCodes.with(getContext()).getAreas(set); for (String area : LocaleUtil.getCountryNames(regions.areas())) { builder.append(area).append('\n'); } if (regions.containsUnresolved()) { builder.append(getString(R.string.fragment_settings_card_areas_other)).append('\n'); } String text = builder.toString(); if (text.endsWith("\n")) { text = text.substring(0, text.length() - 1); } areaList.setText(text); } }
Example #12
Source File: MenuListActivity.java From financisto with GNU General Public License v2.0 | 4 votes |
@OnActivityResult(MenuListItem.ACTIVITY_CHANGE_PREFERENCES) public void onChangePreferences() { scheduleNextAutoBackup(this); }
Example #13
Source File: MenuListActivity.java From financisto with GNU General Public License v2.0 | 4 votes |
@OnActivityResult(RESOLVE_CONNECTION_REQUEST_CODE) public void onConnectionRequest(int resultCode) { if (resultCode == RESULT_OK) { Toast.makeText(this, R.string.google_drive_connection_resolved, Toast.LENGTH_LONG).show(); } }
Example #14
Source File: MainActivity.java From AndroidAnnotationsPermissionsDispatcherPlugin with Apache License 2.0 | 2 votes |
@OnActivityResult(10) protected void onResult(int resultCode, Intent data) { }
Example #15
Source File: Main.java From iSCAU-Android with GNU General Public License v3.0 | 2 votes |
@OnActivityResult(UIHelper.QUERY_FOR_EDIT_ACCOUNT) void onEditAccountResult(){ }