-
-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
How can I launch an Android widget from within Termux? #1399
Comments
Find out the activity that gets launched, and then use |
This comment was marked as spam.
This comment was marked as spam.
@SDRausty Not sure if the example you provided was a counter to what I said, so I'm just going to clarify that I meant something along the lines of
|
This comment was marked as spam.
This comment was marked as spam.
Hi. I think with Android "apps with shortcuts" does not mean what it would normally mean. Most apps have icons that you click on the homescreen to start them. But that's not what I'm looking for. Actually I should have said widgets. I got confused because the widgets are also sometimes referred to as shortcuts. Anyway, I'm looking specifically for a way to launch a widget from Termux. I was not able to launch apps with the instructions above either. But anyway it's the launching of wiidgets that I'm after. |
This comment was marked as spam.
This comment was marked as spam.
@bitcoinmeetups What you are looking for is the calling specific intents with specified arguments. You can't call widget directly but only what is behind it. Example for launching Termux activity:
- note that Termux cannot have more than one activity launched at the time, existing one will be brought to the front due to configuration in AndroidManifest.xml (single task mode). Widgets are not exception and their action can be called through argument too. But this is more complicated and there no universal way how to do that. Example for calling scripts through Termux:Widget:
- launches a new login shell session due to called script |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
No, single task mode is intentional. There no reason for having multiple activities. You also won't be able to start activity anyway if it is already running at the front. Instead of
you will just get
|
How can I launch an Android widget from within Termux?
Let's say another Android app has a widget (e. g. Automate). How can I write a Termux script which launches that widget?
The text was updated successfully, but these errors were encountered: