How to perform Web search

Web search can be performed from application using the following function.
void perform_Web_search()
{
	app_control_h app_control;
	
	/* create app_control handle */
	app_control_create(&app_control); 

	/* set operation to be performed  */
	app_control_set_operation(app_control,APP_CONTROL_OPERATION_VIEW); 

	/* set the URI of the data */
	app_control_set_uri(app_control,"http://www.google.com/search?q=Text to search");

	/* send the launch request */
	app_control_send_launch_request(app_control,NULL,NULL);

	/* destroy the app_control handle */ 
	app_control_destroy(app_control); 
}

Responses

0 Replies