gekk Posted May 6, 2012 Share Posted May 6, 2012 Bonjour, je souhaiterais a travers un editText via un bouton lancer la recherche google des thermes saisie dans ma zone de saisie mais je ne trouve pas comment faire. Soyez indulgent, j'ai chercher un bon moment mais sans rien trouver. Je sais lancer google via mon appli mais pas à transmettre le texte saisie. Un petit bout de code m'aiderai Merci. Link to comment Share on other sites More sharing options...
gekk Posted May 6, 2012 Author Share Posted May 6, 2012 Voili, voilou a force j'ai trouvé j'explique //maValeur une variable type Editable Uri chemin = Uri.parse("http://www.google.fr/#q="+maValeur); //uri.parse indique que l'on envoie des paramètres // #q= permet de transmettre la question a google Intent naviguer = new Intent(Intent.ACTION_VIEW, chemin); startActivity(naviguer); Voila si cela intéresse quelqu'un. B) Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.