Title: Issue · GitHub
Open Graph Title: Issue · androidannotations/androidannotations
X Title: Issue · androidannotations/androidannotations
Description: Fast Android Development. Easy maintainance. Contribute to androidannotations/androidannotations development by creating an account on GitHub.
Open Graph Description: Fast Android Development. Easy maintainance. Contribute to androidannotations/androidannotations development by creating an account on GitHub.
X Description: Fast Android Development. Easy maintainance. Contribute to androidannotations/androidannotations development by creating an account on GitHub.
Opengraph URL: https://github.com/androidannotations/androidannotations
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Intent builder startForResult from fragment","articleBody":"You've provided a nice Intent builder for starting Activities. One could use it like this:\n\n``` java\nMyActivity_.intent(getActivity()).startForResult(REQUEST_SEARCH);\n```\n\nHowever, if this is called from a `Fragment`, after the started `Activity` returns to this caller `Fragment`, `onActivityResult` will not get called! The generated code for `startForResult` looks like this:\n\n``` java\npublic void startForResult(int requestCode) {\n if (context_ instanceof Activity) {\n ((Activity) context_).startActivityForResult(intent_, requestCode);\n } else {\n context_.startActivity(intent_);\n }\n}\n```\n\nAnd this is the culprit. In this case the `Activity` version of `startActivityForResult` is called, not the `Fragment` version.\n","author":{"url":"https://github.com/WonderCsabo","@type":"Person","name":"WonderCsabo"},"datePublished":"2013-09-10T22:28:31.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/723/androidannotations/issues/723"}
| route-pattern | /:user_id/:repository/issues/:id(.:format) |
| route-controller | issues |
| route-action | show |
| fetch-nonce | v2:e1b24a6b-c07b-8cd3-d667-1e69d40393fd |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AD74:A3E0D:1075F0B:1625513:6A612A38 |
| html-safe-nonce | afd870ccc3831e1d3f06de5033790e6ebf49cc2883770e1d1ec460a9c6f72b1c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRDc0OkEzRTBEOjEwNzVGMEI6MTYyNTUxMzo2QTYxMkEzOCIsInZpc2l0b3JfaWQiOiI4MjczMDY4NzgxNjEyMzc4NjgwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 16445255800beb4a717cc4ec8138b0f8312acc5493a5f9cb97ea8067201e9374 |
| hovercard-subject-tag | repository:3116751 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/androidannotations/androidannotations/issues/723 |
| twitter:image | https://opengraph.githubassets.com/831b2cea72f89b2d1e38863aac93de01e02120da604fdfa2cc1a8f73c14a12b8/androidannotations/androidannotations |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/831b2cea72f89b2d1e38863aac93de01e02120da604fdfa2cc1a8f73c14a12b8/androidannotations/androidannotations |
| og:image:alt | Fast Android Development. Easy maintainance. Contribute to androidannotations/androidannotations development by creating an account on GitHub. |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 6896275b704df9b9258326d49c8695aecd98d736cd9eeda7bcbb1790ac97d3ad |
| turbo-cache-control | no-cache |
| go-import | github.com/androidannotations/androidannotations git https://github.com/androidannotations/androidannotations.git |
| octolytics-dimension-user_id | 1315313 |
| octolytics-dimension-user_login | androidannotations |
| octolytics-dimension-repository_id | 3116751 |
| octolytics-dimension-repository_nwo | androidannotations/androidannotations |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 3116751 |
| octolytics-dimension-repository_network_root_nwo | androidannotations/androidannotations |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | af89f6cd55841b57fa09b6b0ed9e3f8f2e94b05d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width