I am trying to capture the text of a page and then display it in my application. But when I run the program does not display the text. The site is http://www.bovalpo.com/cgi-local/xml_bcv.pl?URL=1
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_examplebackground);
try {
URL url = new URL("http://www.bovalpo.com/cgi-local/xml_bcv.pl?URL=1");
BufferedReader in = new BufferedReader(new InputStreamReader(url.openStream()));
String inputLine="";
String inputText = "";
while ((inputLine = in.readLine()) != null) {
inputText = inputText + inputLine;
}
System.out.println(inputText);
}catch(MalformedURLException t){
System.out.println("error de url");
} catch(Throwable t){
System.out.println("error de bufffer");
}
}