j3n Posted March 9, 2011 Share Posted March 9, 2011 Comment fait-on pour récupérer dans un String le code source d'un page web? Link to comment Share on other sites More sharing options...
moritan Posted March 9, 2011 Share Posted March 9, 2011 Comme en java. Link to comment Share on other sites More sharing options...
j3n Posted March 9, 2011 Author Share Posted March 9, 2011 Comme en java. C'est à dire? Link to comment Share on other sites More sharing options...
moritan Posted March 9, 2011 Share Posted March 9, 2011 Tu passes soit par la classe URL soit par Httpclient. ça te donne un Inputstream que tu lit et tu obtiensta string. Il y a des milliers de tuto sur le net sur ce sujet http://download.oracle.com/javase/tutorial/networking/urls/readingWriting.html http://developer.android.com/reference/org/apache/http/client/methods/HttpGet.html http://wiki.frandroid.com/wiki/Requ%C3%AAte_HTTP_POST http://developer.android.com/reference/org/apache/http/client/HttpClient.html Link to comment Share on other sites More sharing options...
j3n Posted March 9, 2011 Author Share Posted March 9, 2011 Merci beaucoup. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.