Title: dataScheme (and other) for @Receiver[Action] · Issue #1176 · androidannotations/androidannotations · GitHub
Open Graph Title: dataScheme (and other) for @Receiver[Action] · Issue #1176 · androidannotations/androidannotations
X Title: dataScheme (and other) for @Receiver[Action] · Issue #1176 · androidannotations/androidannotations
Description: as @ReceiverAction is now merged into develop i thought if it would make sense to add features like dataSchemes similar to @Receiver :) the annotation would then get an String[] dataSchemes() and the generated code could be somewhat like...
Open Graph Description: as @ReceiverAction is now merged into develop i thought if it would make sense to add features like dataSchemes similar to @Receiver :) the annotation would then get an String[] dataSchemes() and t...
X Description: as @ReceiverAction is now merged into develop i thought if it would make sense to add features like dataSchemes similar to @Receiver :) the annotation would then get an String[] dataSchemes() and t...
Opengraph URL: https://github.com/androidannotations/androidannotations/issues/1176
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"dataScheme (and other) for @Receiver[Action]","articleBody":"as `@ReceiverAction` is now merged into develop i thought if it would make sense to add features like dataSchemes similar to `@Receiver` :)\n\nthe annotation would then get an `String[] dataSchemes()` and the generated code could be somewhat like\n\n``` java\n public final static List\u003cString\u003e SAMPLE_RECEIVER_SCHEMES = Arrays.asList(\"http\",\"https\");\n public final static String SAMPLE_RECEIVER_ACTION = \"ACTION\";\n public final static String ANY_EXTRA = \"EXTRA\";\n\n @Override\n public void onReceive(Context context, Intent intent) {\n context_ = context;\n super.onReceive(context, intent);\n String action = intent.getAction();\n String scheme = intent.getScheme();\n if (SAMPLE_RECEIVER_ACTION.equals(action) \u0026\u0026 SAMPLE_RECEIVER_SCHEMES.contains(scheme)) {\n Bundle extras = intent.getExtras();\n if (extras!= null) {\n KeyEvent anyExtra = extras.getParcelable(ANY_EXTRA);\n super.sampleReceiverAction(context, anyExtra);\n }\n return ;\n }\n }\n```\n\nbut as mentioned, i'm not yet sure if this is needed. personally i haven't used any `dataScheme` in a Receiver yet. but it might still be insteresting. \n\nit this is considered usefull, maybe we should also consider adding some of the other intent filter features e.g. [mime type](http://developer.android.com/reference/android/content/Intent.html#getType%28%29) or [categories](http://developer.android.com/reference/android/content/Intent.html#hasCategory%28java.lang.String%29) (maybe there are others too). i'm not very deep into BroadcastReceiver related stuff so i can not decide how usefull these features are but they might be usefull in other apps than mine. ;)\n","author":{"url":"https://github.com/dodgex","@type":"Person","name":"dodgex"},"datePublished":"2014-10-03T17:56:34.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":8},"url":"https://github.com/1176/androidannotations/issues/1176"}
| 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:b9a863cb-f5ff-0409-157f-feec854ab438 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A5D8:109896:38E555:4C45DF:6A614DDC |
| html-safe-nonce | 070aea54f8aa8bee39eeaa9766bc760c89fceb05633bcfd9ae4e057380ab1275 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNUQ4OjEwOTg5NjozOEU1NTU6NEM0NURGOjZBNjE0RERDIiwidmlzaXRvcl9pZCI6IjMzOTM0MjIwNDI4MDUxMjg2NjgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | b2c1f94aa78c629c4b0dc9d98d0a2526013680eb8f5504f72e5f65a7074a8e6c |
| hovercard-subject-tag | issue:44828982 |
| 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/1176/issue_layout |
| twitter:image | https://opengraph.githubassets.com/3b2635c1ba1bceb5fd58545611335752b1616b522ba698f94413c7d90d31885c/androidannotations/androidannotations/issues/1176 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/3b2635c1ba1bceb5fd58545611335752b1616b522ba698f94413c7d90d31885c/androidannotations/androidannotations/issues/1176 |
| og:image:alt | as @ReceiverAction is now merged into develop i thought if it would make sense to add features like dataSchemes similar to @Receiver :) the annotation would then get an String[] dataSchemes() and t... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | dodgex |
| hostname | github.com |
| expected-hostname | github.com |
| None | 35b919fdb8e6752d2ed95a144e761ca5e924557563e2ed0a5ebf6c4430cdeeb6 |
| 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 | 1e22b08b60ccb67c3791f565bed248565260e611 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width