Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Android Android Lists and Adapters (2015) Updating the Data Model From JSONArray to a Java Array

Getting an *error* debugging Day[] getDailyForecast method definition

After defining Day[] getDailyForecast method and putting a breakpoint at the return line, I run the program in debug mode. In the variables section of the debug window, I don't have any variables. There is a ! icon followed by the message: Connected to the target VM, address: 'localhost:8622', transport: 'socket'.

There's no other information.

I'm not sure whether it's a problem with my code or the emulator or what.

2 Answers

Hi Jason,

I assume you did all that because you were getting an error somewhere. What was Logcat saying when the error occurred?

If there's nothing being returned, I assume you are at return days; do you have a line before the last closing brace of the for loop that says, days[i] = day; - I only ask because I've seen a few people miss that line and that would cause the problem you're asking about.

Let me know a little more about the problem, show me some code and I'll see what I can work out for you. I do have a working version of that app, so we should be OK.

Give me a shout on here or tweet me @OnlySteveH - I'll hear you!

Steve.

Jason S
Jason S
16,247 Points

I had the same problem, when i copy and pasted from the Hour array i forgot to change temperature to temperatureMax, you probably solved this by now though (: