Title: Custom Keys To Send Custom Intents · Issue #324 · LeanBitLab/LeanType · GitHub
Open Graph Title: Custom Keys To Send Custom Intents · Issue #324 · LeanBitLab/LeanType
X Title: Custom Keys To Send Custom Intents · Issue #324 · LeanBitLab/LeanType
Description: A feature I'd love to have (that's also a current roadblock I'm experiencing) is being able to set a custom key to send a custom intent. Esentially, the use case I was trying to achieve, was sending an intent for the app Macrodroid to in...
Open Graph Description: A feature I'd love to have (that's also a current roadblock I'm experiencing) is being able to set a custom key to send a custom intent. Esentially, the use case I was trying to achieve, was sendin...
X Description: A feature I'd love to have (that's also a current roadblock I'm experiencing) is being able to set a custom key to send a custom intent. Esentially, the use case I was trying to achieve...
Opengraph URL: https://github.com/LeanBitLab/LeanType/issues/324
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Custom Keys To Send Custom Intents","articleBody":"A feature I'd love to have (that's also a current roadblock I'm experiencing) is being able to set a custom key to send a custom intent.\n\nEsentially, the use case I was trying to achieve, was sending an intent for the app Macrodroid to intercept. Naturally, it could be far more useful in all manner of other apps, too.\n\nHaving a basic look, it seems there may be some partial code for custom intents (variables for \"SEND_INTENT_ONE\", \"...TWO\" \u0026 \"...THREE\"). However, they don't quite look \"plugged in\" as I can't see code for setting them or for when they're executed. I could be completely wrong here though as I'm probably whatever level is below beginner for Android development ha.\n\nThanks for your time, it is much appreciated.\n\nTake care 🙂!\n\nEDIT:\nOk so I've figured out that using the intent key codes already in LeanType's code (i.e. -20000, -20001 \u0026 -20002), it does send an intent via IntentUtils' handleSendIntentKey(params). Passing the \"EXTRA_NUMBER\" constant as an extra of the intent. These can already be intercepted by Macrodroid/Tasker/+ apps successfully.\n\nSo, to be really beneficial, I think it would need:\n\n1. Option in settings to add/remove/edit/view custom user definable intents. Otherwise it is limited to the 3 currently hardcoded intents, being \"SEND_INTENT_ONE\", \"SEND_INTENT_TWO\" \u0026 \"SEND_INTENT_THREE\".\n\n2. Option in settings of each intent to set value(s) the intent passes as extras.\n\n3. So that users could add these to a layout's JSON, some way to show the key codes of each custom intent would be needed. For context, currently the keycode for \"SEND_INTENT_THREE\" = -20002. However, being user defined, \"USER_NAMED_INTENT_10\" may be added with code -20009, or \"USER_NAMED_INTENT_12\" = -20011 etc. Maybe show codes next to the name of each intent (tabular display?).\n\nHope I've explained it with adequate sense.","author":{"url":"https://github.com/Gazza732","@type":"Person","name":"Gazza732"},"datePublished":"2026-07-21T12:16:55.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/324/LeanType/issues/324"}
| 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:0b6bcf24-2ba3-4c0e-0166-d68e7b8b0689 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | EA82:1C41B3:CE8FAE:12233EC:6A625FC1 |
| html-safe-nonce | cd1841adc47eec07876d4d2c8b1be080cf32bfef7169f41ab1fcbb8f83c79b51 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQTgyOjFDNDFCMzpDRThGQUU6MTIyMzNFQzo2QTYyNUZDMSIsInZpc2l0b3JfaWQiOiI3MTY5NzE3ODY5Njg1NjYxNjMzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 3f78c3e4886074af49d3b60b0479795efed90e26ad4c253a6eb66856141e2e04 |
| hovercard-subject-tag | issue:4938732315 |
| 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/LeanBitLab/LeanType/324/issue_layout |
| twitter:image | https://opengraph.githubassets.com/3b2bd335d258660081183553fe1b4ec4ceab6fb24cc148dd6ed519479765e0a7/LeanBitLab/LeanType/issues/324 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/3b2bd335d258660081183553fe1b4ec4ceab6fb24cc148dd6ed519479765e0a7/LeanBitLab/LeanType/issues/324 |
| og:image:alt | A feature I'd love to have (that's also a current roadblock I'm experiencing) is being able to set a custom key to send a custom intent. Esentially, the use case I was trying to achieve, was sendin... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Gazza732 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 6d5cd56dfa7e7ed6718ba879da3c0d884bd8b5fecd3883b5f00dcb66b8b8680f |
| turbo-cache-control | no-preview |
| go-import | github.com/LeanBitLab/LeanType git https://github.com/LeanBitLab/LeanType.git |
| octolytics-dimension-user_id | 245915690 |
| octolytics-dimension-user_login | LeanBitLab |
| octolytics-dimension-repository_id | 1134721388 |
| octolytics-dimension-repository_nwo | LeanBitLab/LeanType |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1134721388 |
| octolytics-dimension-repository_network_root_nwo | LeanBitLab/LeanType |
| 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 | d28abcf30a4025dfeef7673e1509edbc5d402c97 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width