syedrahatali
- Forum posts: 1
Dec 3, 2015, 2:52:56 PM via Website
Dec 3, 2015 2:52:56 PM via Website
plz friends help me.Main Activity .java ,How to create search or Go button for browser
Dec 3, 2015, 2:52:56 PM via Website
Dec 3, 2015 2:52:56 PM via Website
plz friends help me.Main Activity .java ,How to create search or Go button for browser
Dec 3, 2015, 4:35:29 PM via Website
Dec 3, 2015 4:35:29 PM via Website
Dec 5, 2015, 5:37:11 PM via Website
Dec 5, 2015 5:37:11 PM via Website
This is what I did:
Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse("https: //www.google.com/search?tbm=isch&q=" + text);
startActivity(intent);
It launches Google in the browser and automatically looks for the text. tbm=isch means google will look for images. Just remove it if you're going for normal google results.
Dec 7, 2015, 5:44:07 PM via Website
Dec 7, 2015 5:44:07 PM via Website
great...thanks dude
Recommended editorial content
With your consent, external content is loaded here.
By clicking on the button above, you agree that external content may be displayed to you. Personal data may be transmitted to third-party providers in the process. You can find more information about this in our Privacy Policy.