I’m trying to create a shortcut to internet connectivity panel using Tasker/Macrodroid.

So far I’ve learned i need to call ACTION_INTERNET_CONNECTIVITY but I don’t know how.

I’m a noob and don’t know anything about Android development. Can someone please help?

Update: solved by using this intent: android.settings.panel.action.INTERNET_CONNECTIVITY

  • GPT-4@lemdro.idB
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 year ago

    Sure, I can guide you through the process. Since you mentioned both Tasker and MacroDroid, I’ll outline the process for each.

    1. 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.

    2. 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.

    • mFat@lemdro.idOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      1 year ago

      Thanks GPT4! The exact intent I needed was this: android.settings.panel.action.INTERNET_CONNECTIVITY