2013-09-23 4 views
1

메신저는 다른 의도를 5 초 동안 작동하기 시작 화면을 설정 한 후 열려고하지만 시작 layout.xml응용 프로그램 충돌()

09-23 11:21:22.135: W/EGL_emulation(2204): eglSurfaceAttrib not implemented 
09-23 11:21:22.605: I/Process(2204): Sending signal. PID: 2204 SIG: 9 
09-23 11:21:31.805: D/dalvikvm(2222): GC_FOR_ALLOC freed 66K, 8% free 2583K/2780K, paused 2ms, total 4ms 
09-23 11:21:31.805: I/dalvikvm-heap(2222): Grow heap (frag case) to 4.549MB for 1997580-byte allocation 
09-23 11:21:31.825: D/dalvikvm(2222): GC_FOR_ALLOC freed 2K, 5% free 4531K/4732K, paused 2ms, total 2ms 
09-23 11:21:31.955: W/dalvikvm(2222): threadid=11: thread exiting with uncaught exception (group=0xb2ef8648) 
09-23 11:21:31.955: E/AndroidRuntime(2222): FATAL EXCEPTION: Thread-105 
09-23 11:21:31.955: E/AndroidRuntime(2222): java.lang.IllegalMonitorStateException: object not locked by thread before wait() 
09-23 11:21:31.955: E/AndroidRuntime(2222):  at java.lang.Object.wait(Native Method) 
09-23 11:21:31.955: E/AndroidRuntime(2222):  at java.lang.Object.wait(Object.java:401) 
09-23 11:21:31.955: E/AndroidRuntime(2222):  at com.app.locator.Splash$1.run(Splash.java:19) 
09-23 11:21:31.995: D/libEGL(2222): loaded /system/lib/egl/libEGL_emulation.so 
09-23 11:21:31.995: D/(2222): HostConnection::get() New Host Connection established 0xb9481bf0, tid 2222 
09-23 11:21:32.025: D/libEGL(2222): loaded /system/lib/egl/libGLESv1_CM_emulation.so 
09-23 11:21:32.025: D/libEGL(2222): loaded /system/lib/egl/libGLESv2_emulation.so 
09-23 11:21:32.255: W/EGL_emulation(2222): eglSurfaceAttrib not implemented 
09-23 11:21:32.295: D/OpenGLRenderer(2222): Enabling debug mode 0 
09-23 11:21:32.945: W/EGL_emulation(2222): eglSurfaceAttrib not implemented 
+0

31MB splash_background 이미지를 사용하고 있습니까? – edisonthk

답변

0

그것은 당신을 보인다 그 때문에 에뮬레이터 호감의 내가 생각 스플래시 화면에 너무 큰 비트 맵을 사용하고 있습니다. downscale it을 시도하십시오. 예 :

final DisplayMetrics metrics = getResources().getDisplayMetrics(); 
    //get splash image width, it will be equal display width 
    final int windowWidth = metrics.widthPixels; 

    final int statusBarHeight = (int) Math.ceil(STATUS_BAR_HEIGHT * getResources().getDisplayMetrics().density); 
    //get splash image height (display height - status bar height) 
    final int windowHeight = metrics.heightPixels - statusBarHeight; 

    final BitmapFactory.Options options = new BitmapFactory.Options(); 
    options.inJustDecodeBounds = true; 
    final int inSampleSize = ImageUtils.calculateInSampleSize(options, windowWidth, windowHeight); 
    options.inSampleSize = inSampleSize; 
    options.inJustDecodeBounds = false; 

    final Bitmap bitmap = BitmapFactory.decodeResource(getResources(), resId, options); 
+0

OutOfMemoryException으로 여전히 채워지고 있습니까? – Bracadabra

+0

고마워요.하지만 여전히 문제가있는 것 중 하나입니다. –

+0

이제는 스레드 tnx를 잠그지 않았기 때문에 ok입니다. –