2013-07-04 2 views
0

에 작동하지 않는 그것은 작동하고 당신은 매우 간단하게 볼 수있는 로그 고양이응용 프로그램은 태블릿

07-04 13:16:28.029: E/AndroidRuntime(688): FATAL EXCEPTION: Thread-94 
07-04 13:16:28.029: E/AndroidRuntime(688): java.lang.UnsupportedOperationException 
07-04 13:16:28.029: E/AndroidRuntime(688): at java.lang.Thread.stop(Thread.java:1076) 
07-04 13:16:28.029: E/AndroidRuntime(688): at java.lang.Thread.stop(Thread.java:1063) 
07-04 13:16:28.029: E/AndroidRuntime(688): at com.henanet.dalel.SplashScreen$1.run(SplashScreen.java:48) 
07-04 13:16:28.499: I/dalvikvm(688): threadid=3: reacting to signal 3 
07-04 13:16:29.121: D/dalvikvm(688): GC_FOR_ALLOC freed 680K, 13% free 6869K/7815K, paused 408ms 
07-04 13:16:29.139: E/dalvikvm(688): Unable to open stack trace file '/data/anr/traces.txt': Is a directory 
07-04 13:16:29.139: I/dalvikvm(688): threadid=3: reacting to signal 3 
07-04 13:16:29.370: E/dalvikvm(688): Unable to open stack trace file '/data/anr/traces.txt': Is a directory 
07-04 13:16:30.569: D/dalvikvm(688): GC_CONCURRENT freed 262K, 11% free 7016K/7815K, paused 3ms+4ms 
07-04 13:16:31.900: W/dalvikvm(688): threadid=13: thread exiting with uncaught exception (group=0x409c01f8) 
07-04 13:16:31.900: I/Process(688): Sending signal. PID: 688 SIG: 9 

이 Splash.java에서이 오류를 제공하지 않습니다 , 어떻게 만드는 이미지에 맞는 태블릿

공용 클래스로 SplashScreen이 활동을 확장 말씀 해주십시오 {

//how long until we go to the next activity 
protected int _splashTime = 5000; 

private Thread splashTread; 

/** Called when the activity is first created. */ 
@Override 
public void onCreate(Bundle savedInstanceState) { 
    super.onCreate(savedInstanceState); 
    setContentView(R.layout.splash); 

    final SplashScreen sPlashScreen = this; 

    // thread for displaying the SplashScreen 
    splashTread = new Thread() { 
     @Override 
     public void run() { 
      try { 
       synchronized(this){ 

         //wait 5 sec 
         wait(_splashTime); 
       } 

      } catch(InterruptedException e) {} 
      finally { 
       finish(); 

       //start a new activity 
       Intent i = new Intent(); 
       i.setClass(sPlashScreen, MainActivity.class); 
         startActivity(i); 

       stop(); 
      } 
     } 
    }; 

    splashTread.start(); 
} 

//Function that will handle the touch 
@Override 
public boolean onTouchEvent(MotionEvent event) { 
    if (event.getAction() == MotionEvent.ACTION_DOWN) { 
     synchronized(splashTread){ 
       splashTread.notifyAll(); 
     } 
    } 
    return true; 
} 

}

+0

우리는 당신의되는 SplashScreen 코드를 볼 때까지 우리는 확신 할 수 없다 라인 (48) – tbruyelle

+0

주위에'SplashScreen.java'을 게시하시기 바랍니다에 대한 매니페스트 파일을 체크,하지만 당신은 당신이 확실하지 않은 것입니다 태블릿에없는 기능을 사용하고 있습니까? 카메라, 전화 (SMS/통화) 등의 것들을 생각해보십시오. 일부는 세로 모드가 아예 없습니다. –

답변

0

스플래시 화면 이미지가 적절한 드로어 블 폴더에서 발견되지 않습니다.

7 인치 태블릿 용 drawable-large-mdpi 또는 hdpi 폴더

10 인치 태블릿 용 drawable-xlarge-mdpi 또는 hdpi 폴더.

올바른 이미지를 사용하십시오.

및 태그

<supports-screens 
     android:anyDensity="true" 
     android:largeScreens="true" 
     android:normalScreens="true" 
     android:smallScreens="true" 
     android:xlargeScreens="true" />