How to read Actions' results?

AndroidHarry

New member
Is there an easy way to get the results of Actions? As an example, I want to paste a variable's string content into Maps search bar. To do that, I launch Maps, then get the search bar focus by clicking on it (via ui interaction). Finally, I paste the variable's string content into the search bar. Usually that works, but at times, Maps takes a long time to load where the ui interaction fails to get the search bar focus. Then subsequently, the paste Action fails and the failure is logged in the system log. I know I can parse the system log and determine the paste Action outcome, but that is cumbersome and slow. I did not find any magic text for Action results. Maybe that should be a feature?
 

MacroDroidDev

Administrator
Staff member
I'm afraid there is no way currently to get the result of a UI Interaction action. However it should be technically possible to set a boolean variable to true or false if the request succeeds or fails to I will consider that a feature request to feed into my TODO list.
 

rodlsd

New member
I'm afraid there is no way currently to get the result of a UI Interaction action. However it should be technically possible to set a boolean variable to true or false if the request succeeds or fails to I will consider that a feature request to feed into my TODO list.
I'm testing an automation with "Whats App Send", and I have a similar problem, sometimes Whatsapp is opened, the text is pasted but there is no sending (UI Interaction action I guess), the text is not sent. Set a boolean variable to true or false it would be great, so a new attempt could be made.
 

Endercraft

Moderator (& bug finder :D)
I'm testing an automation with "Whats App Send", and I have a similar problem, sometimes Whatsapp is opened, the text is pasted but there is no sending (UI Interaction action I guess), the text is not sent. Set a boolean variable to true or false it would be great, so a new attempt could be made.
Yes, it also usually happens to me that the text is not sent.
 

rodlsd

New member
Yes, it also usually happens to me that the text is not sent.
Even if this problem did not occur, it is important to have a successful return, my application is database based and I need to record the success advance the next submission...
 

420

Active member
Is there an easy way to get the results of Actions? As an example, I want to paste a variable's string content into Maps search bar. To do that, I launch Maps, then get the search bar focus by clicking on it (via ui interaction). Finally, I paste the variable's string content into the search bar. Usually that works, but at times, Maps takes a long time to load where the ui interaction fails to get the search bar focus. Then subsequently, the paste Action fails and the failure is logged in the system log. I know I can parse the system log and determine the paste Action outcome, but that is cumbersome and slow. I did not find any magic text for Action results. Maybe that should be a feature?
I'm not sure how to do it exactly but i believe you can open/search Google maps via intent: https://developers.google.com/maps/documentation/urls/android-intents

This won't help you with getting action results but if you can figure out how to do it it would probably be more reliable then using UI interaction.

The only thing i have figured out is navigating to a certain adress, i'm not sure if that is what you are looking to do or if you can simply replace the adress with for example a stores name..
 

Endercraft

Moderator (& bug finder :D)
I'm not sure how to do it exactly but i believe you can open/search Google maps via intent: https://developers.google.com/maps/documentation/urls/android-intents

This won't help you with getting action results but if you can figure out how to do it it would probably be more reliable then using UI interaction.

The only thing i have figured out is navigating to a certain adress, i'm not sure if that is what you are looking to do or if you can simply replace the adress with for example a stores name..
I believe you can open Google maps on any device simply with an Open website action that has a maps link.
 

420

Active member
I believe you can open Google maps on any device simply with an Open website action that has a maps link.
I've just tried it and that seems to work yes, the problem is that (as far as i know) it requires you to know the exact URL. Edit: It seems you can also use this URL where you can use a variable value for the ADRESS (it doesn't actually have to be an adress): https://www.google.com/maps/search/ADRESS

I had already written this text below so i will leave it incase anyone is interested, it seems send intent and open website are both capable of the same things:

With the send intent action you can specify a search query and set a mode, maybe you can change "navigation" to something else aswell, i'm not sure about that.

This opens Google maps in navigation mode:

Target = activity
Action = android.intent.action.VIEW
Data = google.navigation:q=ADRESS&mode=w

(Replace ADRESS with an actual adress, mode=w stands for walking.)
 
Top