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 Getting Data from the Web Parsing Data Returned in JSON Format

Marcus Pierce
Marcus Pierce
8,752 Points

Parsing Data Returned in JSON Format - My LogCat is returning completely different stuff

And definitely not what Ben's shows. For example: "Emulator without GPU detected" and "Skipped 49 frames! The application may be doing too much work on its main thread."

My code seems to be exactly like Ben's, so I have no idea what is going on.

3 Answers

Joe Brown
Joe Brown
21,465 Points

Maybe this is your problem.. Are you filtering the output of logcat? Meaning are using the search bar at the top of logcat to show only the log messages that have your tag on them? What you are saying you are seeing in logcat is normal stuff that gets spit out in the log all the time when your output is not filtered by you, its just Android doing its thing. Your TAG variable at the top of your code is MainActivity or something like that right? Use the filter bar at the top of logcat and type this.. tag:MainActivity ..note the colon separating the two words, or instead of MainActivity whatever you have you have your TAG variable at the top of your code set to. Once you do that there is a drop down menu on the side of logcat where you choose how to further filter your log, it has options of verbose, debug, info, etc.. So in your code if you used log.v() then you want to select verbose from the menu. If you used log.d() then you want the debug option, and so on. I think Ben used log.v() if I remember so you would want verbose if you followed him exactly.

Hannah Taylor
Hannah Taylor
2,407 Points

I have this problem too. It's giving me the skipped frames message and if I filter using my tag and verbose I don't see anything I'm logging using Log.v and my TAG constant. So I'm not sure if any of the JSON data is actually being retrieved or anything :/

Any help greatly appreciated!

Hannah

Hannah Taylor
Hannah Taylor
2,407 Points

Hold up, hold up.... Make sure you've turned airplane mode back off again after force quitting etc., haha. Makes it a bit easier for it to get a successful response code! That was it for me anyway, it's past my bedtime.

Hannah