Page 1 of 1

Searching on google

Posted: 28 Sep 2013 05:23
by rsegoly
Can I trigger search on google using keywords coming from a flow?

Re: Searching on google

Posted: 28 Sep 2013 06:39
by Martin
You can use following actions:
-action Open URL in Browser: https://www.google.com/search?q=keywords
with a variable:
-action Open URL in Browser: https://www.google.com/search?q={variable_name}
if the variable contains a text with special characters you should use following inline expression to encode the search term:
-action Open URL in Browser: https://www.google.com/search?q={encode ... able_name)}

following action should also work:
-action Start Activity with field Action set to android.intent.action.WEB_SEARCH and field Extras set to putString("query", "what's the time?")
you can also add variables into the query extra:
putString("query", variable_name)

The browser should automatically take care of escaping special characters when this action is used.