browser

  • Replies:3
syedrahatali
  • Forum posts: 1

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

Reply
David Lu
  • Forum posts: 15

Dec 3, 2015, 4:35:29 PM via Website






Reply
Balint Farago
  • Forum posts: 19

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.

syedrahatali

Reply
Fariz Gobel
  • Forum posts: 5

Dec 7, 2015, 5:44:07 PM via Website

great...thanks dude

Reply