Replies: 5 comments 12 replies
-
Is there a guide for "send intent"? |
Beta Was this translation helpful? Give feedback.
-
Hello sds100, First of all, thank you for developing KeyMapper. I have a question regarding the use of intents to activate functions on other APPs. I'm using KeyMapper to map an external USB button to start the recording of a GPS track on the Oruxmaps app. To test, I'm using the last free version of Oruxmaps 7.4.25 (https://www.oruxmaps.com/vers2/OruxMaps7.4.25.apk). Oruxmaps includes specific intents for starting, stopping, resuming the recording of the GPS position. As per the documentation on Oruxmaps, one scample intent would be (https://www.oruxmaps.com/oruxmapsmanual_en.pdf): • Stop recording: I've got the button working, as I receive the "on screen message" The problem I have is that I get no response from the Oruxmaps app, but I don't know if I'm using the KeyMapper in the right way. Should I also install Shizuku for doing this? Is it necessary to install tasker / automate for doing this? I assume that this should be really easy, as the Oruxmaps is already prepared for receiving intets calls, but I haven't been able to make it work. Attached the screenshots of the configuration I'm using for the KeyMapper APP. Any help would be appreciated. For all your help, thank you in advace and again thank you for developing such a useful APP, |
Beta Was this translation helpful? Give feedback.
-
Hello sds100, I have a question regarding the use of KeyMapper when the display of the phone is off. I'm configuring KeyMapper to launch the start / stop of the GPS position recording for open water swimming. The GPS App I'm using is Oruxmaps. I usually use Oruxmaps with the screen off. So it is working as expected with the screen off. As shown in the post above, I've managed to launch the start/stop GPS recording actions on Oruxmaps. So far, so good. The problem arises when I put the display off. I know that the bluetooth button is connecting with my phone, as every time I press the button I hear a sound. So, the button is connecting well to the phone. But, when the display is off, KeyMapper does not execute the actions as expected. If I power on the display, even with the display still locked, KeyMapper comes back to life. When I set the display to off again, KeyMapper is again ignoring the bluetooth button, and the actions are not launched. My question is: Is there any special setting for making KeyMapper to work when the screen is off? For all your help, thank you in advance. Best regards. Txane. |
Beta Was this translation helpful? Give feedback.
-
Hello again sds100, I've finally managed to power on the screen of my phone without touching any physical key / display on the phone. In this way I'm able to use KeyMapper for my application. KeyMapper is great, as it allows the use of a single key to trigger three different actions according to the single press, double press and long press configuration. In this way, with a single selfie button, I can send three different intents to the target App. Again, thank you for the hints, your help and also for KeyMapper. In case It's useful for the community, I detail the implementation of the solution below to overcome the "Screen Off" limitation: The Screen Off Problem: In order to guarantee that the target app (In this case Oruxmaps) will appropriately receive the intent, the target app must be the App with the scope of the operating system, in other words, it must be the App on the screen of the phone at the time that the intent is to be received. Nevertheless, when the screen is off, if the objective is to launch any action on the target App through the Bluetooth keyboard /joystick /button, a problem arises in KeyMapper, (and any similar App,) as Android doesn’t allow to detect key events in this scenario. One option to allow KeyMapper to work correctly, (departing from a screen off situation,) would be to provoke, somehow, the change on the screen from the off to the on state through the use of the Bluettooth keyboard/joystick/button. To achieve this, one option is to use an Android’s automation App. There are various options, among which can be highlighted: Tasker (Paid App), Llamalab Automate, and Automagic (non maintained but still downloadable). In this case, Automagic has been used power on the screen by catching the Bluetooth connection event of the Bluetooth keyboard/button with the phone. It’s important to note that, as it happens with Oruxmaps, automation Apps also need to be in the foreground to appropriately catch the triggering events for the desired actions when the screen is off. The working sequence used to power on the screen, send the intent to the target App using KeyMapper to latter power down again the screen is:
The Flow used in Automagic, has the following structure: |
Beta Was this translation helpful? Give feedback.
-
Is there a way to make the action tap screen to a click like a mouse. |
Beta Was this translation helpful? Give feedback.
-
👋 Welcome!
We’re using Discussions as a place to connect with other members of our community. We hope that you:
build together 💪.
To get started, comment below with an introduction of yourself and tell us about what you do with this community.
Beta Was this translation helpful? Give feedback.
All reactions