Reputation: 189
Is there a way I can call Google search which from an app? passing it the query string?
I have an app where users type in text and press a button after which i search and/or process the string. for some part I have to pass the string to the search bar.
Upvotes: 2
Views: 1504
Reputation: 189
This seems to achieve what I want:
SearchManager.startSearch takes an initialQuery parameter:
Upvotes: 1
Reputation: 2773
If you do not need to display the result of the search within your app, this intent might be helpful for you:
http://developer.android.com/reference/android/content/Intent.html#ACTION_WEB_SEARCH
Here is some little example code: http://mobile.dzone.com/articles/android-%E2%80%93-how-implement-google
Upvotes: 2