I am working on Guess Celebrity app and for celebrity names and pictures I was using posh24.
I tried fetching source code first and printing it to logs it worked. Then I decided to fetch names as they were alt tags for images. However, when I did that app crashed and didn't even register names to the logs.
Here are my MainActivity.java and activity_main.xml files.
UPDATE: Here is the logcat.
答案 0 :(得分:0)
IMO the problem is in the AsyncTask, I'm not sure but you have to override onPostExcecute, this method runs on the UI thread which can touch views :)