How to launch browser with google image search query in android
I was wondering how to launch a browser with a google image search query "image text search". For example, a user can select a specific word or phrase and click a button and the action will launch the browser with a Google image search query.
Thanks in advance.
+3
Sama
source
to share
1 answer
Create a URL like this:
String URLString = "https://www.google.com/search?hl=en&site=imghp&tbm=isch&source=hp&q="+TestString;
Run it like this:
Intent i = new Intent(Intent.ACTION_VIEW, Uri.parse(URLString));
startActivity(i);
Make sure your test script is URL safe
+7
Dheeraj Bhaskar
source
to share