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

App Works on Emulator but not on Phone

I am trying to test my app on a phone instead of Android Studio. The app works as expected in the emulator, but if I run it on a phone the background and text colors don't change and I get this error output:

2019-02-18 14:20:02.785 737-737/? E/mm-camera: <MCT   ><ERROR> 176: stop_sof_check_thread: Returning as SOF timer thread not yet initialized session =5
2019-02-18 14:20:02.786 737-737/? E/QCamera: <MCI><ERROR> mm_camera_close: 434: VJ## closing the node 19
2019-02-18 14:20:02.786 900-900/? E/CameraService: onTorchStatusChangedLocked: cannot get torch status of camera 1: No such file or directory (-2)
2019-02-18 14:20:02.787 900-900/? E/CameraService: onTorchStatusChangedLocked: cannot get torch status of camera 1: No such file or directory (-2)
2019-02-18 14:20:02.787 737-14897/? E/QCamera2HWI: NFCSendMessage: can't open file /data/nfc/nfc_pipe
2019-02-18 14:20:02.822 27363-14593/? E/WakeLock: GCM_HB_ALARM release without a matched acquire!
2019-02-18 14:20:02.826 27363-14593/? E/WakeLock: GCM_CONN_ALARM release without a matched acquire!
2019-02-18 14:20:02.828 29734-14817/? E/memtrack: Couldn't load memtrack module
2019-02-18 14:20:02.949 1358-3465/? E/LocationManagerService: removeUpdates: uid=10100, pid=6543, intent=null, package=net.oneplus.weather listener android.location.ILocationListener$Stub$Proxy@47058a7 intent= null
2019-02-18 14:20:03.056 14271-14337/? E/libc: Access denied finding property "net.dns1"
2019-02-18 14:20:03.086 25999-16348/? E/DeviceScanner: [BLE] Failed to start scan because the Bluetooth is disabled.
2019-02-18 14:20:03.088 14271-14337/? E/libc: Access denied finding property "net.dns1"
2019-02-18 14:20:03.100 14271-14337/? E/libc: Access denied finding property "net.dns1"
2019-02-18 14:20:03.454 27363-27657/? E/Parcel: Reading a NULL string not supported here.
2019-02-18 14:20:03.503 27363-27657/? E/Parcel: Reading a NULL string not supported here.
2019-02-18 14:20:03.546 2416-2416/? E/ndroid.systemu: Invalid ID 0x00000000.
2019-02-18 14:20:03.757 14944-14944/? E/neplus.nvbacku: Not starting debugger since process cannot load the jdwp agent.
2019-02-18 14:20:04.455 892-1024/? E/libc: Access denied finding property "sys.thermal.para"
2019-02-18 14:20:05.027 2416-2416/? E/ndroid.systemu: Invalid ID 0x00000000.
2019-02-18 14:20:05.046 2416-2416/? E/ndroid.systemu: Invalid ID 0x00000000.
2019-02-18 14:20:05.395 1358-1401/? E/BatteryExternalStatsWorker: no controller energy info supplied for wifi
2019-02-18 14:20:05.396 1358-1401/? E/BatteryExternalStatsWorker: no controller energy info supplied for bluetooth
2019-02-18 14:20:05.711 735-8536/? E/soundtrigger: audio_extn_sound_trigger_update_stream_status: invalid input device 0x0, for event 2
2019-02-18 14:20:05.712 735-8536/? E/audio_hw_primary: disable_snd_device snd_device =2 device_name =speaker
2019-02-18 14:20:06.728 27363-14971/? E/WakeLock: GCM_CONN_ALARM release without a matched acquire!
2019-02-18 14:20:06.761 735-3408/? E/voice: voice_is_in_call:in_call 0
2019-02-18 14:20:06.761 735-3408/? E/voice: voice_is_in_call:in_call 0
2019-02-18 14:20:06.761 735-3408/? E/voice: voice_is_in_call:in_call 0
2019-02-18 14:20:06.762 735-3408/? E/msm8974_platform: platform_check_backends_match: Invalid snd_device = 
2019-02-18 14:20:06.762 735-3408/? E/soundtrigger: audio_extn_sound_trigger_update_stream_status: invalid input device 0x0, for event 3
2019-02-18 14:20:06.778 1358-5435/? E/ActivityTrigger: activityResumeTrigger: not whiteListedcom.tencent.mobileqq/com.tencent.mobileqq.activity.SplashActivity/980
2019-02-18 14:20:06.827 1358-2550/? E/ActivityTrigger: activityStartTrigger: not whiteListedcom.tencent.mobileqq/cooperation.qzone.QzonePluginProxyActivity/980
2019-02-18 14:20:06.827 1358-2550/? E/ActivityTrigger: activityResumeTrigger: not whiteListedcom.tencent.mobileqq/cooperation.qzone.QzonePluginProxyActivity/980
2019-02-18 14:20:06.843 1358-2550/? E/ActivityTrigger: activityResumeTrigger: not whiteListedcom.tencent.mobileqq/cooperation.qzone.QzonePluginProxyActivity/980
2019-02-18 14:20:07.655 1358-2152/? E/LocationManagerService: requestLocationUpdates: uid=10162, pid=14977, provider=passive, package=com.tencent.mobileqq listener= android.location.ILocationListener$Stub$Proxy@475161c intent= null
2019-02-18 14:20:08.115 751-1191/? E/qti_sensors_hal: processInd: pickup data: state: 1.000000 flag: 255.000000 SAM TS: 153360321 HAL TS:922179659345600 elapsedRealtimeNano:922179710725904
2019-02-18 14:20:09.455 892-1024/? E/libc: Access denied finding property "sys.thermal.para"
2019-02-18 14:20:09.849 1358-1401/? E/BatteryExternalStatsWorker: no controller energy info supplied for wifi
2019-02-18 14:20:09.850 1358-1401/? E/BatteryExternalStatsWorker: no controller energy info supplied for bluetooth
2019-02-18 14:20:09.961 735-8536/? E/soundtrigger: audio_extn_sound_trigger_update_stream_status: invalid input device 0x0, for event 2
2019-02-18 14:20:09.961 735-8536/? E/audio_hw_primary: disable_snd_device snd_device =2 device_name =speaker
2019-02-18 14:20:10.278 959-1049/? E/storaged: getDiskStats failed with result NOT_SUPPORTED and size 0
2019-02-18 14:20:10.568 2416-2416/? E/ndroid.systemu: Invalid ID 0x00000000.
2019-02-18 14:20:10.569 2416-2416/? E/ndroid.systemu: Invalid ID 0x00000000.
2019-02-18 14:20:12.578 2416-2416/? E/ndroid.systemu: Invalid ID 0x00000000.
2019-02-18 14:20:14.456 892-1024/? E/libc: Access denied finding property "s 
Caleb Kleveter
Caleb Kleveter
Treehouse Moderator 37,862 Points

I personally don't have enough experience to be able to help with this. Hope you get it sorted out!

1 Answer

Hi. Could you filter your logcat please and paste it again? Right now there doesn't seem to be anything related to your app there. In the logcat, there's a dropdown menu in the top right corner. Select "Show only selected application". Sometimes, it does not work the first time and still shows everything. In that case, select "No filter", then "Show only selected application again. Thank you.