2014-03-31 76 views
0

如何使用英特爾應用程序框架在移動應用程序中實施啓動畫面? 英特爾應用程序框架中的啓動畫面

我試過了。此代碼顯示圖像。但它顯示了很長時間。我只想在短時間內展示它。這個怎麼做。? 高級謝謝你的答案。

+0

你可以在你的工作方式上發佈代碼 – krisrak

回答

0

嘗試處理程序啓動畫面是這樣的:直到

$af.ui.launch() 

運行顯示

Handler handler = new Handler(); 

     handler.postDelayed(new Runnable() { 

      @Override 
      public void run() { 

       // make sure we close the splash screen so the user won't come back when it presses back key 
       finish(); 
       if (!mIsBackButtonPressed) { 
        // start the home screen if the back button wasn't pressed already 
        Intent intent = new Intent(Splash.this, Next_Activity.class); 
        startActivity(intent); 
        finish(); 
       } 

      } 

     }, Constant.SPLASH_DURATION); 

@Override 
    public void onBackPressed() { 

     // set the flag to true so the next activity won't start up 
     mIsBackButtonPressed = true; 
     super.onBackPressed(); 

    } 
+0

你的答案與英特爾應用程序框架(JavaScript框架)無關, – carrabino

0

的啓動畫面。

搜索你的代碼,該行

window.setTimeout(function() { $af.ui.launch(); }, 1500); 

,改變1500至更小的東西。

相關問題