2012-10-21 5 views
4

Android 앱용 스플래시 화면이 추가되었습니다. 표시되지만 스플래시 화면을 표시 한 후 2 초 동안 검은 색 화면이 표시됩니다.Android 앱용 검은 색 화면

어떻게 해결할 수 있습니까?

+0

당신이 당신의 문제를 해결합니까? 어떤 해결책 ?? 감사합니다 – 1myb

답변

1

귀하의 태그를 기반으로 Android Phonegap 앱의 문제를 겪고 있다고 가정했습니다.

loadUrl 메서드에서 특정 시간을 제공하는 대신 준비된 장치에서 스플래시 화면을 닫아야합니다.

코드 조각 : 폰갭 onDeviceReady 방식에

super.setIntegerProperty("splashscreen", R.drawable.splash); // Display splash screen for android 
this.setIntegerProperty("loadUrlTimeoutValue", 70000); 
super.loadUrl("file:///android_asset/www/index.html",10000);// Give max time here 

숨기기 시작 화면 :

document.addEventListener("deviceready", onDeviceReady, false); 

    // Cordova is ready 
    // 
    function onDeviceReady() { 
     cordova.exec(null, null, "SplashScreen", "hide", []) 

    } 
+0

코드 스 니펫은 어디에 두어야합니까? –