Android ACTION_WEB_SEARCH
I am not able to get the ACTION_WEB_SEARCH to work correctly, does this require any permissions on the AndriodManifest.xml?
This is my code:
String q = edittext.getText().toString();
Intent myIntent = new Intent(Intent.ACTION_WEB_SEARCH, Uri.parse(q));
startActivity(myIntent);
Any help would be much appreciated.
Platform 2.0.
Asked by: Melissa660 | Posted: 25-01-2022
Answer 1
String q = edittext.getText().toString();
Intent intent = new Intent(Intent.ACTION_WEB_SEARCH );
intent.putExtra(SearchManager.QUERY, q);
startActivity(intent);
Answered by: Elise901 | Posted: 26-02-2022
Similar questions
android ACTION_WEB_search not working
I am not able to get the ACTION_WEB_SEARCH to work correctly, does this require any permissions on the AndriodManifest.xml?
The other ACTIONS work(email,call,sms).Also how to make a map search ?
what Action to use is there any action_searchmap?
here is the error i get when try to go to an url
12-30 15:34:33.798: E/AndroidRuntime(4972): FATAL EXCEPTION: main
12-30 1...
android - Available options for the ACTION_WEB_SEARCH RecognizerIntent
I am studying how the android.speech package works and I noticed that most of the extras used with the intent RecognizerIntent.ACTION_WEB_SEARCH are ignored by the speech recognizer.
If I set a language using the RecognizerIntent.EXTRA_LANGUAGE extra, the specified language is ignored, but the default language of the device is always used.
If I set a text using ...
android - ACTION_WEB_SEARCH cannot be performed
In my application I do
Uri webAddress = Uri.parse("http://www.nrk.no");
Intent webIntent = new Intent(Intent.ACTION_WEB_SEARCH, webAddress);
String title = "Choose an app";
Intent chooserIntent = Intent.createChooser(webIntent, title);
startActivity(chooserIntent);
But the chooser that pops open says that No apps can perform this action. What am I doing w...
android - ACTION_WEB_SEARCH opens the right search query for the first time only
I have an app which opens the ACTION_WEB_SEARCH intent to open the search app. It works fine the first time, but if the activity is started again, the search parameters don't change.
public static void launchWebSearch(Context context, String query) {
Intent intent = new Intent(Intent.ACTION_WEB_SEARCH);
intent.putExtra(SearchManager.QUERY, query);
context.startActivity(intent);
}
...
Still can't find your answer? Check out these communities...
Android Google Support | Android Community | Android Community (Facebook) | Dev.io Android