Searching on google

Post your questions and help other users.

Moderator: Martin

Post Reply
rsegoly
Posts: 46
Joined: 14 Jun 2013 15:30

Searching on google

Post by rsegoly » 28 Sep 2013 05:23

Can I trigger search on google using keywords coming from a flow?

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: Searching on google

Post by Martin » 28 Sep 2013 06:39

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.

Post Reply