I have 2 browsers installed on your Android device 1) by default and 2) Chrome
When I run the following code, I get a "Full action using" selector ...
String url = "http://www.google.com/search?q=" + query;
Intent i = new Intent(Intent.ACTION_VIEW);
i.setData(Uri.parse(url));
startActivity(i);
The Android browser works by default, since the browser opens at the specified URL. However, when I open the Chrome browser, Chrome just opens ... it seems to ignore the specified URL.
Is this a problem with Chrome or my code?
Greetings
source
share