Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: directly launch a control pad by name from other apps. #2

Open
sudomain opened this issue Jan 12, 2025 · 5 comments
Open

Comments

@sudomain
Copy link

Hello,

First, thank you very much for this amazing app. It is exactly what I've needed for a project of mine. I have a couple control pads set up now and want to programmatically launch a given control pad by name. I'd like to be able to send an intent from automation-based apps such as Termux or Key Mapper and have Droid Pad open the correct activity. I believe this can be implemented as a service or broadcast receiver.

Thank you again for this app.

@umer0586
Copy link
Owner

Thanks for the feedback!

Launching a specific control pad via an external intent can be a bit challenging because the app is built around a single Compose activity with a navigation graph. This means there aren’t separate activities that an intent could directly target.

Additionally, this kind of functionality seems to fall a bit outside the scope of what DroidPad is designed for. But, I really enjoy hearing creative ideas, so keep them coming! 💡

@sudomain
Copy link
Author

Happy to hear you are so receptive! I know you said it was out of scope for this project, but would you accept a PR that does it? I'm not very familiar with NavGraph but I think I might be able to do it using NavDeepLinkBuilder and/or a broadcast receiver. Ultimately, I'll respect your final decision on the matter.

If you like creative ideas, wait until you hear what I'm using DroidPad for: As a gift, I received an bluetooth input device that simulates swipes and taps on the screen at specific locations. I believe the popular name for it is a "TikTok scrolling ring". I don't use TikTok but still want to make use of the ring, so I configured a MQTT control pad that uses a button to capture the input from a screen tap from the ring and sliders to capture screen swipes. It works pretty well, only being limited by the speed of the ring.

@umer0586
Copy link
Owner

I would appreciate a PR, but I think this is a bit off from the use case of this app. But I’m thinking of going the other way—like adding a QR feature in the app where the user can scan a code and the control pad opens up.

As a gift, I received an bluetooth input device that simulates swipes and taps on the screen at specific locations. I believe the popular name for it is a "TikTok scrolling ring". I don't use TikTok but still want to make use of the ring, so I configured a MQTT control pad that uses a button to capture the input from a screen tap from the ring and sliders to capture screen swipes. It works pretty well, only being limited by the speed of the ring.

Interesting! Does it involve any coding, and is it open source? If it’s open source and involves Python, I’d love to add it to the examples at DroidPad Python Examples

@sudomain
Copy link
Author

I would appreciate a PR, but I think this is a bit off from the use case of this app. But I’m thinking of going the other way—like adding a QR feature in the app where the user can scan a code and the control pad opens up.

That sounds cool! How would the data be encoded in the QR code? Would it be a URL and DroidPad would register itself to open those URLs?

Interesting! Does it involve any coding, and is it open source? If it’s open source and involves Python, I’d love to add it to the examples at DroidPad Python Examples

I have mosquitto running as the server/broker and wrote a python MQTT client using paho that subscribes to "DroidPad/Events". It's very basic but I can make a PR if you want

@umer0586
Copy link
Owner

Not sure yet, but I think a JSON string with all the info about the control pad would work

It's very basic but I can make a PR if you want

Yes, Contributions are always welcome

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants