Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Android Build a Blog Reader Android App Adapting Data for Display in a List Adding Secondary Data with a SimpleAdapter

IO Exception Caught - inputstream not being read properly

After creating the simple adapter and invoking it, I run my app but each time I get the error dialog and 'IO Exception Caught' message in the log. Any idea why this might be happening? Any help is appreciated

1 Answer

Stone Preston
Stone Preston
42,016 Points

This happened to me as well. I would run the app and get an input stream exception (I think it said something about an unrecognized character string or something like that). But after the crash I would stop the app then run it again and it would work. Did you try running it again after it crashes?

Thanks. Restarting the app after force stopping worked. But after I added the BlogPostWebView activity and ran the app again, the IO Exception returned. This time however restarting the app (multiple times) has not helped.

PS: Log indicates it is an EOF error. But the line referenced is where I have stored the responseCode which is an integer. I cannot understand what is going on. Please help!