Title: Enhanced Receiver support · Issue #851 · androidannotations/androidannotations · GitHub
Open Graph Title: Enhanced Receiver support · Issue #851 · androidannotations/androidannotations
X Title: Enhanced Receiver support · Issue #851 · androidannotations/androidannotations
Description: Android Receiver works pretty much the same way as the IntentService. So the purpose of this suggestion is to do for them what #572 for IntentServices At the moment, the code for a receiver looks like this: public class ModuleDownloadRec...
Open Graph Description: Android Receiver works pretty much the same way as the IntentService. So the purpose of this suggestion is to do for them what #572 for IntentServices At the moment, the code for a receiver looks l...
X Description: Android Receiver works pretty much the same way as the IntentService. So the purpose of this suggestion is to do for them what #572 for IntentServices At the moment, the code for a receiver looks l...
Opengraph URL: https://github.com/androidannotations/androidannotations/issues/851
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Enhanced Receiver support ","articleBody":"Android `Receiver` works pretty much the same way as the `IntentService`.\n\nSo the purpose of this suggestion is to do for them what #572 for IntentServices\n\nAt the moment, the code for a receiver looks like this: \n\n``` java\npublic class ModuleDownloadReceiver extends BroadcastReceiver {\n\n @Override\n public void onReceive(final Context context, final Intent intent) {\n String action = intent.getAction();\n if (DownloadManager.ACTION_DOWNLOAD_COMPLETE.equals(action)) {\n long downloadId = intent.getLongExtra(DownloadManager.EXTRA_DOWNLOAD_ID, 0);\n // Your code...\n }\n }\n}\n```\n\nA better way would be: \n\n``` java\n@EReceiver\npublic class ModuleDownloadReceiver extends BroadcastReceiver {\n\n @ReceiverAction(DownloadManager.ACTION_DOWNLOAD_COMPLETE) \n public void onDownloadComplete(long extraDownloadId) {\n // Your code ...\n }\n}\n```\n","author":{"url":"https://github.com/PerfectCarl","@type":"Person","name":"PerfectCarl"},"datePublished":"2014-01-01T19:32:54.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/851/androidannotations/issues/851"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:a26935e8-0ae7-5f3e-079d-3de12aeac13a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A804:1C0806:11B098E:187D509:6A61B581 |
| html-safe-nonce | b0d964bc2f0f205fe6d6c90cc6e018afdd43916822dcd8121ac3ce135ba5cf46 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBODA0OjFDMDgwNjoxMUIwOThFOjE4N0Q1MDk6NkE2MUI1ODEiLCJ2aXNpdG9yX2lkIjoiMTc3NjQ3ODE2NDIzMzU5ODMzNyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | c7f9efc1d41a9363b2d596bfa367c03e77674e0dc61fad8cb8e403abb186328b |
| hovercard-subject-tag | issue:24944610 |
| 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/_view_fragments/issues/show/androidannotations/androidannotations/851/issue_layout |
| twitter:image | https://opengraph.githubassets.com/7aaf02199fcb5a3c5a21e1773859c56c623159e0f1c1ba7cf5736e1cb1a48672/androidannotations/androidannotations/issues/851 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/7aaf02199fcb5a3c5a21e1773859c56c623159e0f1c1ba7cf5736e1cb1a48672/androidannotations/androidannotations/issues/851 |
| og:image:alt | Android Receiver works pretty much the same way as the IntentService. So the purpose of this suggestion is to do for them what #572 for IntentServices At the moment, the code for a receiver looks l... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | PerfectCarl |
| hostname | github.com |
| expected-hostname | github.com |
| None | 6f4633bcf01c1ad14b73fd07dd39ac31d61f3d3c2578ee08ec1792b7b351eeb9 |
| turbo-cache-control | no-preview |
| 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 | ac296ae7f21856f1f92adbad22f870b6fbb4b907 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width