Title: @EReceiver must override the "onReceiver" method even if @ReceiverAction exists · Issue #1239 · androidannotations/androidannotations · GitHub
Open Graph Title: @EReceiver must override the "onReceiver" method even if @ReceiverAction exists · Issue #1239 · androidannotations/androidannotations
X Title: @EReceiver must override the "onReceiver" method even if @ReceiverAction exists · Issue #1239 · androidannotations/androidannotations
Description: I met a question, hope someone do a favor. If i do: @EReceiver public class NetworkReceiver extends BroadcastReceiver { @ReceiverAction(ConnectivityManager.CONNECTIVITY_ACTION) void onConnectivityChanged() { ... } We will appear the foll...
Open Graph Description: I met a question, hope someone do a favor. If i do: @EReceiver public class NetworkReceiver extends BroadcastReceiver { @ReceiverAction(ConnectivityManager.CONNECTIVITY_ACTION) void onConnectivityC...
X Description: I met a question, hope someone do a favor. If i do: @EReceiver public class NetworkReceiver extends BroadcastReceiver { @ReceiverAction(ConnectivityManager.CONNECTIVITY_ACTION) void onConnectivityC...
Opengraph URL: https://github.com/androidannotations/androidannotations/issues/1239
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"@EReceiver must override the \"onReceiver\" method even if @ReceiverAction exists","articleBody":"I met a question, hope someone do a favor.\nIf i do:\n\n``` java\n@EReceiver\npublic class NetworkReceiver extends BroadcastReceiver {\n @ReceiverAction(ConnectivityManager.CONNECTIVITY_ACTION)\n void onConnectivityChanged() {\n ...\n }\n```\n\nWe will appear the following mistake during compilation:\n\n``` java\nClass 'NetworkReceiver' must either be declared abstract or implement abstract method 'onReceive(Context ,Intent)' in 'BroadcastReceiver'\n```\n\nBut when I puted the NetworkReceiver into \"abstract\", AA was no longer generates a \"NetworkReceiver_\" file.\n\nNow we only do:\n\n``` java\n @ReceiverAction(ConnectivityManager.CONNECTIVITY_ACTION)\n void onConnectivityChanged() {\n ...\n }\n\n @Override\n public void onReceive(Context context, Intent intent) {\n // Nothing\n }\n```\n\nAny idea?\n","author":{"url":"https://github.com/jiongxuan","@type":"Person","name":"jiongxuan"},"datePublished":"2014-11-13T13:10:59.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":8},"url":"https://github.com/1239/androidannotations/issues/1239"}
| 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:860c6a2f-e95d-af74-f8fb-6309a77f9c79 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 93C8:361588:12B443:1305B6:6A60FB90 |
| html-safe-nonce | 009932ec85f65808a6c8ac4612b4b20efef2edf93e4636ab3058f644d185b523 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5M0M4OjM2MTU4ODoxMkI0NDM6MTMwNUI2OjZBNjBGQjkwIiwidmlzaXRvcl9pZCI6IjM2ODMyNTk5OTk0NDU5MDgzNjgiLCJyZWdpb25fZWRnZSI6InNlYSIsInJlZ2lvbl9yZW5kZXIiOiJzZWEifQ== |
| visitor-hmac | 954e451b7baae9a9cfc78416b8350ee0c686692d42ea52360f49141a651976d8 |
| hovercard-subject-tag | issue:48634141 |
| 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/1239/issue_layout |
| twitter:image | https://opengraph.githubassets.com/78534a34bbf6fee06fc2e99ea13897ff5a1588301722929789effa9bd8c4cdb7/androidannotations/androidannotations/issues/1239 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/78534a34bbf6fee06fc2e99ea13897ff5a1588301722929789effa9bd8c4cdb7/androidannotations/androidannotations/issues/1239 |
| og:image:alt | I met a question, hope someone do a favor. If i do: @EReceiver public class NetworkReceiver extends BroadcastReceiver { @ReceiverAction(ConnectivityManager.CONNECTIVITY_ACTION) void onConnectivityC... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jiongxuan |
| hostname | github.com |
| expected-hostname | github.com |
| None | 40a35f8d38abec207dcde39ffae0c0d14012c6d27b769f13fdac3ab78dc77ebe |
| 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 | ef41e0ca8cf502957b8d49077bbe7c8dcdcbb037 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width