• Tutorial: How to create your first automation script on Android

    From Marion@[email protected] to comp.mobile.android on Sat Nov 1 21:42:23 2025
    From Newsgroup: comp.mobile.android

    Tutorial: How to create your first automation script on Android
    This is perhaps the simplest task I can think of for us to automate.

    The reason I'm writing this is I'm trying to automate something far more complicated, but I need to ensure that Automate works before I do that.

    1. Google Play Store
    <https://play.google.com/store/apps/details?id=com.llamalab.automate>
    2. LlamaLab official site
    <https://llamalab.com/automate/>
    3. APKPure mirror (for sideloading if Play Store not available)
    <https://apkpure.com/automate/com.llamalab.automate>

    Note: Automate by LlamaLab is not available on F-Droid partly because
    Automate is not open source. If you search F-Droid, you will find other automation apps like "Automation" or "Easer" but they are different
    projects. Tasker, which is the gold standard, is not free.

    Here is a simple toast test flow using Automate (v1.47.0) on Android 13.

    1. Open Automate
    It will open to the blue bar saying "Flows".
    You will see a white canvas and a blue plus sign at the bottom right.
    Tap + (bottom right)
    This will put a "Flow beginning" block in the middle of your canvas.
    It will also name the flow "<Untitled>" as seen in the top bar.

    2. Long press on the "<Untitled>" in the top blue bar
    A box comes up with three fields
    Title = blank <-- change it to "Test Toast" (or whatever)
    Description = blank
    Notification channel = Flow
    Press [Save]

    3. Press the plus button again
    This time an alphabetical cascaded pullout block picker will show up.
    Click to the Interface section.
    Scroll down the alphabetical list until you can select Toast show
    Select it.
    A second block will show up below the first block on your canvas

    4. Tap that second block named "Toast show" by default.
    A box comes up with three fields
    Options = {Immediately,When shown,When hidden}
    Input arguments = blank
    Duration (_)Short (_)Long

    Note: Configuring it with 'When hidden' ensures the flow doesn't
    continue until the toast has actually been displayed & dismissed.
    That's a good habit when we want predictable sequencing.

    5. Set the Options to When hidden
    Set the "Input arguments" to "Hello World"
    Set the Duration to Long)
    Press the "SAVE" button at the top right in the blue bar.

    6. You should be back to your canvas, with two blocks.
    Draw a connection line straight down from the bottom blue dot
    of the Flow beginning block to the top blue dot of the
    Toast show block below it.

    7. (Optional) Add a graceful "Stop flow" Block
    Block picker -> Flow -> Flow stop

    If you performed the optional step 7, then draw a connection
    line straight down from the bottom blue dot of the previous
    block to the top blue dot of the block below it.

    8. This next step is unintuitive.
    You have to back out of this flow diagram.
    Press the back arrow at the top of the screen in the blue area.

    9. You should see a big blue [Start] button at the top right.
    When you tap that button, the flow will run.

    10. At the bottom of your screen, for a few seconds, you should see:
    Hello World

    Voila!
    You've just performed your very first automation with Automate on Android.

    Here is a copy of the log file in my tests of this tutorial just now.
    11-01 20:37:18.737 I 94@1: Flow beginning
    11-01 20:37:18.740 I 94@2: Toast show
    11-01 20:37:22.633 I 94@3: Flow stop
    11-01 20:37:22.637 I 94@3: Stopped by block
    --
    Usenet is where kind people daily gather to voluntarily help others.

    --- Synchronet 3.21a-Linux NewsLink 1.2
  • From Marion@[email protected] to comp.mobile.android on Sat Nov 1 23:11:20 2025
    From Newsgroup: comp.mobile.android

    Marion wrote:
    Voila!
    You've just performed your very first automation with Automate on Android.

    I managed to create a shortcut to run that "hello world" using the widget capability (yes, I said I created a shortcut, using the widget capability).

    1. Long-press on the Nova home screen.
    2. Tap Widgets.
    3. Scroll to the Automate app in the listing.
    4. Select Flow shortcut (not Flow widget 1x1).
    5. Drag Flow shortcut to home screen.
    6. Automate opens a list of your flows.
    7. Select your target flow (example: Test Toast).
    8. Confirm by pressing the "OK" link.
    9. A plain shortcut icon appears on home screen.
    10. Tap the shortcut to run the flow.

    When I tap that shortcut, Hello World appears on the screen.
    Voila!

    Note: For those who don't have Nova, I did try multiple methods to create
    the shortcut using the same steps as before, but the problem is the
    activities we need aren't exported. I also tried a method from within
    Automate but that failed too because what I needed wasn't available.

    Apparently in older versions, com.llamalab.automate.IntentActivity was exported, but I can't find it in the current version.

    From the previous flow, we need to get its URI from within Automate.
    Open that flow.
    Tap the Flow beginning block.
    In its properties, note the Flow URI, which looks like this:
    content://com.llamalab.automate/flow/###

    Let's assume that previous Automate flow URI was:
    content://com.llamalab.automate.provider/flows/28/statements/1
    Which we can clean up to fit the desired formatting of:
    content://com.llamalab.automate.provider/flows/28

    This is what I tried in Shortcut Maker (v4.2.2) but the Intent Activity
    doesn't exist anymore in later versions of Automate so I gave up on this.
    Label: Test Toast
    Package: com.llamalab.automate
    Class: com.llamalab.automate.IntentActivity
    Data URI: content://com.llamalab.automate.provider/flows/28
    Action: (leave blank)

    I also tried the Automate internal method without using external tools.
    Add the App shortcut install block
    Tap + -> Apps -> App shortcut install
    A new block appears named "Install shortcut"

    Configure the App shortcut install block
    Tap the block
    Label: Test Toast
    Tap the "Pick app activity" button
    Find and select "Automate"
    From Automate activities, pick "IntentActivity"
    (This fills Package and Class automatically)
    Data URI: paste the previously built flow URI:
    content://com.llamalab.automate.provider/flows/28
    Leave Action empty
    Save

    It was absolutely miserable creating that shortcut, because all the methods that SHOULD have worked in Automate or using Shortcut Maker (v4.2.2),
    failed. If it's possible from within Automate, I can't figure out how.

    Luckily, it was trivial to do with Nova launcher.
    --- Synchronet 3.21a-Linux NewsLink 1.2
  • From Mr. Man-wai Chang@[email protected] to comp.mobile.android on Thu Nov 6 22:03:25 2025
    From Newsgroup: comp.mobile.android

    On 2/11/2025 1:11 pm, Marion wrote:


    It was absolutely miserable creating that shortcut, because all the methods that SHOULD have worked in Automate or using Shortcut Maker (v4.2.2),
    failed. If it's possible from within Automate, I can't figure out how.

    Luckily, it was trivial to do with Nova launcher.


    Too bad I cannot use Visual Foxpro in Android and iOS. VFP got a
    database engine, a GUI and a report writer all in one! ;)
    --
    @~@ Simplicity is Beauty! Remain silent! Drink, Blink, Stretch!
    / v \ May the Force and farces be with you! Live long and prosper!!
    /( _ )\ https://sites.google.com/site/changmw/
    ^ ^ https://github.com/changmw/changmw
    --- Synchronet 3.21a-Linux NewsLink 1.2