AutoWear Can i call an "App Action" fromm a "Button Screen"

Discussion in 'AutoApps' started by garremp, Dec 21, 2018.

  1. garremp

    garremp New Member

    Joined:
    Dec 19, 2018
    Messages:
    7
    Likes Received:
    0
  2. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    How did you configure the button and App action?
     
  3. garremp

    garremp New Member

    Joined:
    Dec 19, 2018
    Messages:
    7
    Likes Received:
    0
    the floating button opens a screen and a button on that screen should execute the action to start the app. i followed exactly the example. as a test i started the app action from the floating and it worked flawlessly. but when i try to start the app action via a button on a screen the command does not get recognized even if ican see on my phone that it is being sent.

    edit: i tried to recreate the tutorial. Works fine if i do exactly as in the tutorial and start the action from a floating button but it does not react when i call the exact same action from a screen
     
    Last edited: Dec 23, 2018
  4. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    Very strange. Maybe you have an extra space somewhere and it's not matching the command exactly?

    Can you please try this in AutoWear:
    - clear logs
    - enable system logs
    -do command
    -export logs and paste them here

    Thanks!
     
  5. garremp

    garremp New Member

    Joined:
    Dec 19, 2018
    Messages:
    7
    Likes Received:
    0
    Start sction from floating icon:

    version 2.0.bf3

    OS Build MMB29K.G903FXXU2BRH2
    OS Code 23
    Device SM-G903F
    Manufacturer samsung
    Product s5neoltexx

    Command Match - 2019-01-02 21:09:04.261 - '&StartShazam&' matches 'task=:=': false
    States - 2019-01-02 21:09:04.179 - New com.joaomgcd.autowear.util.WearState: &StartShazam&;
    Commands - 2019-01-02 21:09:04.148 - New Last Command: &StartShazam&;

    start screen from floating action and call action from that screen:

    version 2.0.bf3

    OS Build MMB29K.G903FXXU2BRH2
    OS Code 23
    Device SM-G903F
    Manufacturer samsung
    Product s5neoltexx

    Command Match - 2019-01-02 21:25:17.443 - '&ShowFloating&' matches 'task=:=': false
    States - 2019-01-02 21:25:17.375 - New com.joaomgcd.autowear.util.WearState: &ShowFloating&;
    Commands - 2019-01-02 21:25:17.365 - New Last Command: &ShowFloating&;
    Command Match - 2019-01-02 21:25:13.741 - '&StartShazam&' matches 'task=:=': false
    States - 2019-01-02 21:25:13.657 - New com.joaomgcd.autowear.util.WearState: &StartShazam&;
    Commands - 2019-01-02 21:25:13.650 - New Last Command: &StartShazam&;
    Command Match - 2019-01-02 21:25:11.645 - '&HideFloating&' matches 'task=:=': false
    States - 2019-01-02 21:25:11.554 - New com.joaomgcd.autowear.util.WearState: &HideFloating&;
    Commands - 2019-01-02 21:25:11.546 - New Last Command: &HideFloating&;
    Command Match - 2019-01-02 21:25:11.480 - '&AppScreen&' matches 'task=:=': false
    States - 2019-01-02 21:25:11.408 - New com.joaomgcd.autowear.util.WearState: &AppScreen&;
    Commands - 2019-01-02 21:25:11.400 - New Last Command: &AppScreen&;

    I hope this is remotly what you asked for, because i am not sure ;) (no real clue about programing)
     
  6. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    Thanks. That was it. :) Maybe it's one of those other commands that's actually showing the screen you want? As you can see in one case you only generate 1 command, while in the other you generate 4.
     
  7. garremp

    garremp New Member

    Joined:
    Dec 19, 2018
    Messages:
    7
    Likes Received:
    0
    &ShowFloating&, &HideFloating&: hide abd show the floating icon when a screen is opened so they do not obstruct view on the screen
    &AppScreen&: shows the screen where the button is for the app action
    &StartShazam&: command to execute the app action to start a certain app (you guessed right, its Shazam :p)

    i will look into that commands, thanks for the tip!

    edit: i finally found the flaw! i seperated the commands with a space in autowear. thats why the commands did not get recognized. Thank you very much for your help!
     
    Last edited: Jan 4, 2019
: App Action

Share This Page