Wednesday, July 3, 2013

Implement Google Search Inside Your Application

 public void onSearchBtnClick(View v){
       
       try {       
       Intent intent = new Intent(Intent.ACTION_WEB_SEARCH);       
       String line = ed1.getText().toString();       
       intent.putExtra(SearchManager.QUERY, line);       
       startActivity(intent);       
       } catch (Exception e) {
        e.printStackTrace();
       }
      
      
       }

No comments:

Post a Comment