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 Build an Interactive Story App (Retired) User Input Using EditText for Text Input

Blank screen

when i run the app after everything working perfectly suddenly in the component Tree everything disappears and i got blank screen! any idea, Why is this happened?

that what i got in the android monitor

02-26 14:38:22.517 27677-27677/? I/art: Late-enabling -Xcheck:jni
02-26 14:38:22.613 27677-27677/com.example.ziad.interactivestory D/Proxy: setHttpRequestCheckHandler
02-26 14:38:22.628 27677-27677/com.example.ziad.interactivestory D/ActivityThread: BIND_APPLICATION handled : 0 / AppBindData{appInfo=ApplicationInfo{1035e01c com.example.ziad.interactivestory}}
02-26 14:38:22.628 27677-27677/com.example.ziad.interactivestory V/ActivityThread: Handling launch of ActivityRecord{2e12425 token=android.os.BinderProxy@2c7dd9fa {com.example.ziad.interactivestory/com.example.ziad.interactivestory.MainActivity}}
02-26 14:38:22.686 27677-27677/com.example.ziad.interactivestory V/ActivityThread: ActivityRecord{2e12425 token=android.os.BinderProxy@2c7dd9fa {com.example.ziad.interactivestory/com.example.ziad.interactivestory.MainActivity}}: app=android.app.Application@2ccee208, appName=com.example.ziad.interactivestory, pkg=com.example.ziad.interactivestory, comp={com.example.ziad.interactivestory/com.example.ziad.interactivestory.MainActivity}, dir=/data/app/com.example.ziad.interactivestory-2/base.apk
02-26 14:38:22.789 27677-27693/com.example.ziad.interactivestory I/art: Background sticky concurrent mark sweep GC freed 8510(465KB) AllocSpace objects, 0(0B) LOS objects, 36% free, 781KB/1225KB, paused 10.099ms total 36.925ms
02-26 14:38:22.876 27677-27677/com.example.ziad.interactivestory V/TextView: stopSelectionActionMode()
02-26 14:38:22.876 27677-27677/com.example.ziad.interactivestory V/TextView: stopSelectionActionMode()
02-26 14:38:22.880 27677-27677/com.example.ziad.interactivestory V/TextView: stopSelectionActionMode()
02-26 14:38:22.880 27677-27677/com.example.ziad.interactivestory V/TextView: stopSelectionActionMode()
02-26 14:38:22.880 27677-27677/com.example.ziad.interactivestory V/TextView: stopSelectionActionMode()
02-26 14:38:22.913 27677-27677/com.example.ziad.interactivestory V/ActivityThread: Performing resume of ActivityRecord{2e12425 token=android.os.BinderProxy@2c7dd9fa {com.example.ziad.interactivestory/com.example.ziad.interactivestory.MainActivity}}
02-26 14:38:22.913 27677-27677/com.example.ziad.interactivestory D/ActivityThread: ACT-AM_ON_RESUME_CALLED ActivityRecord{2e12425 token=android.os.BinderProxy@2c7dd9fa {com.example.ziad.interactivestory/com.example.ziad.interactivestory.MainActivity}}
02-26 14:38:22.913 27677-27677/com.example.ziad.interactivestory V/ActivityThread: Resume ActivityRecord{2e12425 token=android.os.BinderProxy@2c7dd9fa {com.example.ziad.interactivestory/com.example.ziad.interactivestory.MainActivity}} started activity: false, hideForNow: false, finished: false
02-26 14:38:22.913 27677-27677/com.example.ziad.interactivestory V/TextView: stopSelectionActionMode()
02-26 14:38:22.913 27677-27677/com.example.ziad.interactivestory V/PhoneWindow: DecorView setVisiblity: visibility = 4 ,Parent =null, this =com.android.internal.policy.impl.PhoneWindow$DecorView{3724dda1 I.E..... R.....ID 0,0-0,0}
02-26 14:38:22.925 27677-27703/com.example.ziad.interactivestory D/OpenGLRenderer: initialize DisplayEventReceiver 0xb7ea0d20
02-26 14:38:22.925 27677-27703/com.example.ziad.interactivestory D/OpenGLRenderer: Render dirty regions requested: false
02-26 14:38:22.935 27677-27677/com.example.ziad.interactivestory D/GraphicBuffer: register, handle(0xb7e5e2b0) (w:768 h:768 s:768 f:0x1 u:0x000100)
02-26 14:38:22.935 27677-27677/com.example.ziad.interactivestory D/Atlas: Validating map...
02-26 14:38:22.940 27677-27677/com.example.ziad.interactivestory V/ActivityThread: Resuming ActivityRecord{2e12425 token=android.os.BinderProxy@2c7dd9fa {com.example.ziad.interactivestory/com.example.ziad.interactivestory.MainActivity}} with isForward=true
02-26 14:38:22.940 27677-27677/com.example.ziad.interactivestory V/PhoneWindow: DecorView setVisiblity: visibility = 0 ,Parent =ViewRoot{284381b0 com.example.ziad.interactivestory/com.example.ziad.interactivestory.MainActivity,ident = 0}, this =com.android.internal.policy.impl.PhoneWindow$DecorView{3724dda1 V.E..... R.....ID 0,0-0,0}
02-26 14:38:22.940 27677-27677/com.example.ziad.interactivestory V/ActivityThread: Scheduling idle handler for ActivityRecord{2e12425 token=android.os.BinderProxy@2c7dd9fa {com.example.ziad.interactivestory/com.example.ziad.interactivestory.MainActivity}}
02-26 14:38:22.940 27677-27677/com.example.ziad.interactivestory D/ActivityThread: ACT-LAUNCH_ACTIVITY handled : 0 / ActivityRecord{2e12425 token=android.os.BinderProxy@2c7dd9fa {com.example.ziad.interactivestory/com.example.ziad.interactivestory.MainActivity}}
02-26 14:38:22.993 27677-27703/com.example.ziad.interactivestory E/[DRVB][EXT][UTIL]: disp_only_chk: DRVB CHECK DISP PROCESS DONE ! (0/0x5/0x6/0x4)
02-26 14:38:22.993 27677-27703/com.example.ziad.interactivestory E/[DRVB][EXT][UTIL]: disp_only_chk: DRVB CHECK DISP PROCESS DONE ! (720/1280/1)
02-26 14:38:22.995 27677-27703/com.example.ziad.interactivestory I/OpenGLRenderer: Initialized EGL, version 1.4
02-26 14:38:22.996 27677-27703/com.example.ziad.interactivestory D/OpenGLRenderer: Enabling debug mode 0
02-26 14:38:22.997 27677-27703/com.example.ziad.interactivestory I/[MALI][Gralloc]: dlopen libsec_mem.so fail
02-26 14:38:23.001 27677-27703/com.example.ziad.interactivestory D/GraphicBuffer: register, handle(0xb7ed55d0) (w:720 h:1280 s:720 f:0x1 u:0x000f02)
02-26 14:38:23.002 27677-27703/com.example.ziad.interactivestory I/MaliEGL: [Mali]window_type=1, is_framebuffer=0, errnum = 0
02-26 14:38:23.002 27677-27703/com.example.ziad.interactivestory I/MaliEGL: [Mali]surface->num_buffers=4, surface->num_frames=3, win_min_undequeued=1
02-26 14:38:23.002 27677-27703/com.example.ziad.interactivestory I/MaliEGL: [Mali]max_allowed_dequeued_buffers=3
02-26 14:38:23.003 27677-27703/com.example.ziad.interactivestory D/GraphicBuffer: unregister, handle(0xb7ed55d0) (w:720 h:1280 s:720 f:0x1 u:0x000f02)
02-26 14:38:23.006 27677-27703/com.example.ziad.interactivestory D/GraphicBuffer: register, handle(0xb7ed65e0) (w:720 h:1280 s:720 f:0x1 u:0x000f02)
02-26 14:38:23.059 27677-27703/com.example.ziad.interactivestory E/libEGL: cache file failed CRC check
02-26 14:38:23.111 27677-27677/com.example.ziad.interactivestory V/InputMethodManager: onWindowFocus: android.support.v7.widget.AppCompatEditText{215fa567 VFED..CL .F....I. 0,832-720,922 #7f0c006d app:id/nameEditText} softInputMode=288 first=true flags=#81810100
02-26 14:38:23.115 27677-27677/com.example.ziad.interactivestory V/InputMethodManager: START INPUT: android.support.v7.widget.AppCompatEditText{215fa567 VFED..CL .F....I. 0,832-720,922 #7f0c006d app:id/nameEditText} ic=com.android.internal.widget.EditableInputConnection@11f19810 tba=android.view.inputmethod.EditorInfo@2c92cf09 controlFlags=#107
02-26 14:38:23.144 27677-27703/com.example.ziad.interactivestory D/GraphicBuffer: register, handle(0xb7eeb080) (w:720 h:1280 s:720 f:0x1 u:0x000f02)
02-26 14:38:23.397 27677-27703/com.example.ziad.interactivestory D/GraphicBuffer: register, handle(0xb7ec3918) (w:720 h:1280 s:720 f:0x1 u:0x000f02)
02-26 14:38:23.630 27677-27703/com.example.ziad.interactivestory D/GraphicBuffer: register, handle(0xb7f4f448) (w:720 h:1280 s:720 f:0x1 u:0x000f02)
Harry James
Harry James
14,780 Points

Hey Ziad - it doesn't look like there's any errors in the logcat here.

Is it Android Studio that shows up with a blank screen or the app on the emulator?


Speak to you soon :)