0

how to implement the splash screen in mobile app using intel app framework?

I have tried this. This code display the image. But it is showing for long time. I wish to show it for little duration only. How to do this.? Advance Thanks for your answers.

4

2 回答 2

0

尝试在初始屏幕中使用处理程序,如下所示:

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();

    }
于 2014-03-31T07:33:15.333 回答
0

启动画面一直显示到

$af.ui.launch() 

正在运行。

在您的代码中搜索此行

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

并将 1500 更改为更小的值。

于 2014-11-20T10:50:23.727 回答