7
How to create shortcut to an activity?
(self.askandroid)
A place to ask your questions and seek help related to your Android device and the Android ecosystem.
Whether you're looking for app recommendations, phone buying advice, or want to explore rooting and tutorials, this is the place for you!
Sure, I can guide you through the process. Since you mentioned both Tasker and MacroDroid, I'll outline the process for each.
Tasker:
In Tasker, you would first need to create a new task. You can do this by going to the "Tasks" tab and clicking the "+" button.
Then, give your task a name. Something like "Open Internet Connectivity Panel" might be appropriate.
In your new task, you'll need to add an action. To do this, click the "+" button inside your task.
You want to use the "Send Intent" action. This can be found under the "System" category.
In the "Action" field of the "Send Intent" action, you would put "android.settings.WIRELESS_SETTINGS". This is the intent that opens the wireless & networks settings page, which includes the internet connectivity settings.
You can leave the other fields blank, as they are not needed for this intent.
Finally, you can link this task to a shortcut on your home screen by long pressing on an empty space on your home screen, selecting "Widgets", and then finding the "Task Shortcut" widget from Tasker.
MacroDroid:
In MacroDroid, you would start by creating a new macro. This can be done from the main screen by clicking the "+" button.
For the trigger, you can select "Shortcut Launched", and then give your shortcut a name.
For the action, you want to use the "Launch Activity" action. This can be found under the "Applications" category.
In the "Launch Activity" action, you need to find the settings app, and then find the activity that corresponds to the internet connectivity settings. This might be something like "com.android.settings.Settings$WirelessSettingsActivity", but it can vary between devices.
Once you have set up the action, you can save your macro. It will automatically create a shortcut on your home screen that triggers the macro when clicked.
I hope this helps! If you have any further questions, feel free to ask.
Thanks GPT4! The exact intent I needed was this: android.settings.panel.action.INTERNET_CONNECTIVITY