2013-09-26 28 views
0

我構建了我的應用程序包,一切似乎都正常,但它在啓動畫面後在設備上顯示白屏2秒。我在這個問題上看到了很多問題,但沒有找到適合我的應用程序出錯的解決方案。我使用的手機gap.Please幫我啓動畫面和啓動畫面之間的白色屏幕index.html應用程序生成包之後的sencha觸摸

這裏是我的index.html

<!DOCTYPE HTML> 
<html manifest="" lang="en-US"> 

<head> 
    <meta 
    charset="UTF-8"> 
     <meta 
     name="format-detection" content="telephone=no"> 

     <title>Test APP </title> 
     <link href="touch/resources/css/app.css" rel="stylesheet" type="text/css" /> 
     <script src="touch/sencha-touch-all-debug.js" type="text/javascript"></script> 
     <script src="js-cordova/ios/cordova-2.7.0.js" type="text/javascript"></script> 
     <script src="js-cordova/ios/barcodescanner.js"type="text/javascript"></script> 
       <script type="text/javascript"> 
       document.addEventListener("deviceready", onDeviceReady,true); 
          document.addEventListener("backbutton", onBackKeyDown,false); 
       function onDeviceReady() 
        { 
         setTimeout(function() 
         { 
         navigator.splashscreen.hide(); 

         },50000); 
          document.addEventListener("backbutton", onBackKeyDown,false); 
          } 

          </script> 
    <style type="text/css"> 
     html, body { 
        height: 100%; 
        background-color: #7f1a1a; 
        background : url('uploads/Samsung.png') center no-repeat; 
       } 
     #appLoadingIndicator {  
       position: absolute; 
       top: 50%; 
       margin-top: -15px; 
       text-align: center; 
       width: 100%; 
       height: 30px; 
       -webkit-animation-name: appLoadingIndicator; 
       -webkit-animation-duration: 0.5s; 
       -webkit-animation-iteration-count: infinite; 

      } 
     #appLoadingIndicator > * { 
       display: inline-block; 
       height: 30px; 
       -webkit-border-radius: 15px; 
       margin: 0 5px; 
       width: 30px; 
       opacity: 0.8; 
      } 

     @-webkit-keyframes appLoadingIndicator{ 
     0% { 
      opacity: 0.8 
      } 
     50% { 
      opacity: 0 
      } 
     100% { 
      opacity: 0.8 
      } 
     } 
    </style> 
<!-- The line below must be kept intact for Sencha Command to build your application --> 
<script id="microloader" type="text/javascript" src="touch/microloader/development.js"></script> 
</head> 
<body> 
<div id="appLoadingIndicator"> 

</div> 
</body> 

</html> 

回答

1

我加科爾多瓦閃屏插件,以避免corodova屏幕和煎茶負載,現在我使用煎茶touch2.3之間的空白隨着科爾多瓦來,所以我現在沒有看到任何白色的屏幕。

相關問題