0
我想在我的應用程序中實現在線搜索或全局搜索。例如,輸入將搜索並從Google或任何其他搜索引擎獲取結果。如何在android studio中實現在線搜索
我想在我的應用程序中實現在線搜索或全局搜索。例如,輸入將搜索並從Google或任何其他搜索引擎獲取結果。如何在android studio中實現在線搜索
Intent intent = new Intent(Intent.ACTION_WEB_SEARCH);
String keyword= "your search";
intent.putExtra(SearchManager.QUERY, keyword);
startActivity(intent);
它會導致谷歌搜索引擎。