Sending intents (or something!) to Android

Posted on
  • Is there a help page / tutorial / example somewhere of how to send an intent to an Android device via Bluetooth - if indeed that is possible?

    Or of how to send a message of some sort that can be picked up by an automation app (such as tasker/macrodroid/automate)?

  • There is currently no way to send Intents. That's definitely planned to be integrated into Gadgetbridge soon, but it's not there yet.

    The best bet is probably to make the Bangle appear as a Bluetooth keyboard, then you can just send keypresses which I imagine can be detected by those apps? For instance keys F13 to F24 are unlikely to have any effect on the device normally but should be pretty easy to pick up.

    edit: http://www.espruino.com/BLE+Keyboard

    Or best to look at how the keyboard app works: https://github.com/espruino/BangleApps/bĀ­lob/master/apps/hidkbd/hid-keyboard.js

  • Ok, that would work - though Macrodroid doesn't seem to have an input for keyboards; Automate does, and Tasker probably has a plugin!

    I may just wait for intents in Gadgetbridge! I'm not an expert, and have just been reading stuff up, but it does seem that being able to send intents could enable a lot of functionality in Android.

  • Post a reply
    • Bold
    • Italics
    • Link
    • Image
    • List
    • Quote
    • code
    • Preview
About

Sending intents (or something!) to Android

Posted by Avatar for daldred @daldred

Actions