How to search in google app through activity starter

I am making an app and i want to search a text in google by opening google app through activity starter. So, i want to get to know the activity package,class and extra key in order to search google.

Launch a Web search

To launch a Web search for a particular query, such as “Homer Simpson”, use an activity starter with these properties:

Action: android.intent.action.WEB_SEARCH
ExtraKey: query
ExtraValue: Homer Simpson
ActivityPackage: com.google.android.providers.enhancedgooglesearch
ActivityClass: com.google.android.providers.enhancedgooglesearch.Launcher

Open the browser to a Web page

Use these activity starter properties to open a specific web page:

Action: android.intent.action.VIEW
DataUri: http://news.google.com

2 Likes