Adding the Google Search API to an Android App

Hi, I would like to add google search api to my application. And the search result should be displayed as a list ... can someone send me an example or tell me how to do this?

+7
android google-search-api
source share
2 answers

Here it is..

Intent intent = new Intent(Intent.ACTION_WEB_SEARCH); String keyword= "your query here"; intent.putExtra(SearchManager.QUERY, keyword); startActivity(intent); 

How about voice-based searches ..

 Intent sp=new Intent(RecognizerIntent.ACTION_WEB_SEARCH); sp.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL, RecognizerIntent.LANGUAGE_MODEL_FREE_FORM); sp.putExtra(RecognizerIntent.EXTRA_PROMPT, "Speak please"); startActivity(sp); 
+2
source share

Here is a good example of implementing google search in your Android application Implementing google search I hope this helps.

+2
source share

All Articles