-
Notifications
You must be signed in to change notification settings - Fork 126
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
android 11 device control #54
Comments
Good idea 👍💡💡 |
This sounded interesting! I was able to get a working POC, but will spend some more time to clean it up. Here is a sneak peek of how it could look: termux-device-control-widget-demo.movUnfortunately it looks as though only an Activity can be started (which typically would display in the bottom sheet). So downside is any time you click on a button, it will briefly show that empty bottom sheet animation. I don't think there will be a way around that. But the Activity will quickly close and run whatever shortcut you supplied (just like a regular Termux widget would behave from home screen) |
waw that was fast ! thank you so much |
And about the activity if you want to bother, there seems to be ways of making an activity invisible / transparent ? Or it's not possible in this case ? I found multiple thread solved with multiple solution about this. thank you ! |
I was able to get it working properly w/o that bottom sheet! I have raised a PR |
Closed by #55 |
Android 11 and up have "device control" which are tiles in the power menu, usually to control connected things like plug and lamps. I think it would be pretty useful to add the .shortcuts to the power menu using the device control api. thanks
https://developer.android.com/guide/topics/ui/device-control
The text was updated successfully, but these errors were encountered: