Hi Martin. I've been using custom widgets alot lately and I think that accessing the widgets list should be easier.
I was thinking that you could do some kind of overlaying buttons when in the flows list to go straight to the list of widgets and the other way around. Maybe a menubar at the bottom with additional commands. I dont know how hard it would be to modify the interface right now though.
I've attached a picture. U can see the red button on the bottom right
Thanks
Access custom widgets
Moderator: Martin
Access custom widgets
- Attachments
-
- Screenshot_20160427-065810.png (392.97 KiB) Viewed 9413 times
Re: Access custom widgets
Adding such a button or a command bar or even a menu item to switch to the widget list should be doable.
Unofficially you could use action Start Activity with explizit component package set to automagic and class name set to ch.gridvision.ppam.androidautomagic.WidgetListActivity.
Do you eventually want to open one particular widget and switch from a flow to this particular widget and back again? I could also add an open widget button for actions Show/Hide Custom Widget Overlay like it's available to open flows for action Execute Flows. Would that also help or is the flow and the widget not directly related?
Regards,
Martin
Unofficially you could use action Start Activity with explizit component package set to automagic and class name set to ch.gridvision.ppam.androidautomagic.WidgetListActivity.
Do you eventually want to open one particular widget and switch from a flow to this particular widget and back again? I could also add an open widget button for actions Show/Hide Custom Widget Overlay like it's available to open flows for action Execute Flows. Would that also help or is the flow and the widget not directly related?
Regards,
Martin
Re: Access custom widgets
Hi Martin. I was thinking about making my own custom widget with a command to get to the widgets list. How can I reliably detect that I have the flows list showing on-screen ?
Of course, making a shortcut from action show overlay to the widget would also be great.
If anyone else has any ideeas about this..
Of course, making a shortcut from action show overlay to the widget would also be great.
If anyone else has any ideeas about this..
Re: Access custom widgets
Use trigger Activity started, package name: "ch.gridvision.ppam.androidautomagic", class name: "*".
Condition: Expression, activity_class == "ch.gridvision.ppam.androidautomagic.FlowListActivity"
>TRUE: Action Script, global_list = "true"
>FALSE: Action Script, global_list = "false"
That flow check which activity is active in AM and sets the variable to "true" if you are in the flow list, otherwise to "false". This method is quite reliable although it can become a pain to configure, if you want to check more than one activity and set their own values to the variable.
EDIT: It just occurred to me that you can skip the condition and following scripts and do it all just in one action script. It depends on the use case, which method is best, but I think you could do it with the latter. Also, it's easier to configure for multiple activities as you don't have to make a large or else tree with expression.
Condition: Expression, activity_class == "ch.gridvision.ppam.androidautomagic.FlowListActivity"
>TRUE: Action Script, global_list = "true"
>FALSE: Action Script, global_list = "false"
That flow check which activity is active in AM and sets the variable to "true" if you are in the flow list, otherwise to "false". This method is quite reliable although it can become a pain to configure, if you want to check more than one activity and set their own values to the variable.
EDIT: It just occurred to me that you can skip the condition and following scripts and do it all just in one action script. It depends on the use case, which method is best, but I think you could do it with the latter. Also, it's easier to configure for multiple activities as you don't have to make a large or else tree with expression.