I want to display my element to an textview.
code
Document doc = Jsoup.parse(myURL);
Elements name = doc.getElementsByClass(".lNameHeader");
for (Element nametext : name){
String text = nametext.text();
tabel1.setText(text);
but it displays nothing.
(the site i am parsing http://roosters.gepro-osi.nl/roosters/rooster.php?leerling=120777&type=Leerlingrooster&afdeling=12-13_OVERIG&tabblad=2&school=905)
From your previous question it shows that
myURLis aString. In this case you are are using the constructor Jsoup.parse(String html).You need the one that takes a
URLto make the connection:Also drop the leading
.character from the class name. If you don’t wish to specify a timeout you can simply use: