英特尔应用框架中的闪屏

时间:2014-03-31 07:29:00

标签: android mobile appframework

如何使用intel app框架在移动应用中实现启动画面?                   

我试过这个。此代码显示图像。但它显示了很长时间。我希望只在很短的时间内展示它。这该怎么做。? 预先感谢您的回答。

2 个答案:

答案 0 :(得分: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();

    }

答案 1 :(得分:0)

直到

才会显示启动画面
$af.ui.launch() 

正在运行。

在代码中搜索此行

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

并将1500改为更小的东西。