diff --git a/wear/src/main/java/com/example/android/wearablemessageapiexample/WearActivity.java b/wear/src/main/java/com/example/android/wearablemessageapiexample/WearActivity.java index c39413e..d10585a 100644 --- a/wear/src/main/java/com/example/android/wearablemessageapiexample/WearActivity.java +++ b/wear/src/main/java/com/example/android/wearablemessageapiexample/WearActivity.java @@ -116,18 +116,10 @@ protected void onActivityResult(int requestCode, int resultCode, Intent data) { if (!textMatchList.isEmpty()) { // If first Match contains the 'search' word // Then start web search. - if (textMatchList.get(0).contains("search")) { - String searchQuery = textMatchList.get(0); + String searchQuery = textMatchList.get(0); Wearable.MessageApi.sendMessage(apiClient, remoteNodeId, COMMAND_PATH, searchQuery.getBytes()); - searchQuery = searchQuery.replace("search",""); - Intent search = new Intent(Intent.ACTION_WEB_SEARCH); - search.putExtra(SearchManager.QUERY, searchQuery); - startActivity(search); - - Wearable.MessageApi.sendMessage(apiClient, remoteNodeId, COMMAND_PATH, command.getBytes()); - } } //Result code for various error.