Start Google search query from activity - Android -


i wondering if there easier way (or way) start browser google search query. example user can select word or phrase , click button , activity start browser google search query.

thank you.

you can quite few lines of code (assuming want search google 'fish'):

uri uri = uri.parse("http://www.google.com/#q=fish"); intent intent = new intent(intent.action_view, uri); startactivity(intent); 

otherwise, if rather start own activity handle browsing, should able webview: http://developer.android.com/reference/android/webkit/webview.html

i think better answer here @zen_of_kermit's. nice though, if android allowed user provide search engine has though action_web_search, rather using google.


Comments

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -