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

The Beginner’s Guide to Location in Android

Hi, I have created the app to locate a user following Ben's guide on the Treehouse blog (http://blog.teamtreehouse.com/beginners-guide-location-android)

When I run the app (via genymotion), I get a map appearing on the screen but no label on my current location, nor does the camera centre to my current location.

This is the output from the logcat: 06-29 13:04:50.682 3604-3604/? I/art﹕ Late-enabling -Xcheck:jni 06-29 13:04:50.974 3604-3604/com.khackett.locationapp I/zzy﹕ Making Creator dynamically 06-29 13:04:50.977 3604-3604/com.khackett.locationapp W/ResourcesManager﹕ Asset path '/system/framework/com.android.media.remotedisplay.jar' does not exist or contains no resources. 06-29 13:04:50.977 3604-3604/com.khackett.locationapp W/ResourcesManager﹕ Asset path '/system/framework/com.android.location.provider.jar' does not exist or contains no resources. 06-29 13:04:51.028 3604-3604/com.khackett.locationapp I/Google Maps Android API﹕ Google Play services client version: 7571000 06-29 13:04:51.039 3604-3604/com.khackett.locationapp I/Google Maps Android API﹕ Google Play services package version: 7574470 06-29 13:04:51.768 3604-3688/com.khackett.locationapp D/OpenGLRenderer﹕ Render dirty regions requested: true 06-29 13:04:51.771 3604-3604/com.khackett.locationapp D/﹕ HostConnection::get() New Host Connection established 0xabbdd3e0, tid 3604 06-29 13:04:51.781 3604-3604/com.khackett.locationapp D/Atlas﹕ Validating map... 06-29 13:04:51.823 3604-3688/com.khackett.locationapp D/libEGL﹕ loaded /system/lib/egl/libEGL_emulation.so 06-29 13:04:51.833 3604-3688/com.khackett.locationapp D/libEGL﹕ loaded /system/lib/egl/libGLESv1_CM_emulation.so 06-29 13:04:51.846 3604-3688/com.khackett.locationapp D/libEGL﹕ loaded /system/lib/egl/libGLESv2_emulation.so 06-29 13:04:51.853 3604-3688/com.khackett.locationapp D/﹕ HostConnection::get() New Host Connection established 0xa3d0b760, tid 3688 06-29 13:04:51.872 3604-3688/com.khackett.locationapp I/OpenGLRenderer﹕ Initialized EGL, version 1.4 06-29 13:04:51.887 3604-3688/com.khackett.locationapp D/OpenGLRenderer﹕ Enabling debug mode 0 06-29 13:04:51.910 3604-3688/com.khackett.locationapp W/EGL_emulation﹕ eglSurfaceAttrib not implemented 06-29 13:04:51.910 3604-3688/com.khackett.locationapp W/OpenGLRenderer﹕ Failed to set EGL_SWAP_BEHAVIOR on surface 0xa3d07f20, error=EGL_SUCCESS 06-29 13:04:51.942 3604-3681/com.khackett.locationapp D/﹕ HostConnection::get() New Host Connection established 0xafe0b6b0, tid 3681 06-29 13:04:52.061 3604-3604/com.khackett.locationapp I/MapsActivity﹕ Location services connected.

If anyone can see where I am going wrong or point me in the right direction, it would be greatly appreciated.

thanks, Kevin