Steve Luke wrote:What does 'not working mean? What is the error/problem?
Are you using System.out.println(t) in the Android version? Does the app have a console to print to? Are you looking at the correct console? What happens if you send output to Log.d("Parse HTML", t) instead (using LogCat or similar to look at the logs)?
What is the user agent used when sending the request? Does the receiver know it is coming from Android/mobile device? Does it have a mobile view? Does that mobile view have the element ID you are looking for?
These are the questions I would be asking if this where my problem...
I get NullPointerException also when i use Log.d("Parse HTML", t.getElementById("content-main").text()).The emementID (content-main) exists, besides as i said it works as it is supposed when i'm running the same code as a java application.I don't get there a NullPointerException
Also i forgot to mention that i use System.out.println and Log.d() on postExecute of an AsyncTask.