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
Tyler Wendlandt
4,267 PointsAndroid Blog Reader Application (Network Unavailable)
Hi there,
I was testing my blog reader application at my friends house (on my laptop) and it connected to the network and the parsing of all the JSON worked great. As soon as I get home I go to test it and it can't seem to connect to a Network. My laptop is connected to my internet (no issues with browsing internet) and my emulator does not have airplane mode on.
Also apparently my LogCat decided to go on vacation because it is not outputting ANY info at all.
the console has been outputting this
[2013-08-29 19:43:24 - BlogReader] Android Launch!
[2013-08-29 19:43:24 - BlogReader] adb is running normally.
[2013-08-29 19:43:24 - BlogReader] Performing com.practice.blogreader.MainListActivity activity launch
[2013-08-29 19:43:25 - BlogReader] Automatic Target Mode: using existing emulator 'emulator-5554' running compatible AVD 'Nexus_4_Emulator'
[2013-08-29 19:43:26 - BlogReader] Application already deployed. No need to reinstall.
[2013-08-29 19:43:26 - BlogReader] Starting activity com.practice.blogreader.MainListActivity on device emulator-5554
[2013-08-29 19:43:27 - BlogReader] ActivityManager: Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.practice.blogreader/.MainListActivity }
[2013-08-29 19:43:27 - BlogReader] ActivityManager: Warning: Activity not started, its current task has been brought to the front
Even though the only thing that is displayed on the emulator is the application.
Any Ideas?
1 Answer
Tyler Wendlandt
4,267 PointsI had not fully exited the app that was running on the emulator, once I did a force stop it worked.
Ben Jakuben
Treehouse TeacherBen Jakuben
Treehouse TeacherGlad you got it working! Different wifi networks can cause problems like this when the emulator is running from one to the next. You can often restart the emulator as well, but force closing it was a great idea.