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();
}
}
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