IBM工作灯6.1-如何减少闪屏持续时间约为1秒的Andr​​oid? [英] IBM Worklight 6.1- How to reduce splash screen duration around 1 second for android?

查看:123
本文介绍了IBM工作灯6.1-如何减少闪屏持续时间约为1秒的Andr​​oid?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用IBM工作灯6.1我的移动应用程序项目。我的问题是如何减少1秒左右的启动画面持续时间。我和我的同事已经从计算器尝试了很多解决方案,对于这个问题。

I'm using IBM Worklight 6.1 for my mobile app project. My question is how to reduce splash screen duration around 1 second. I and my colleague already try many solutions from stackoverflow regarding to this issue.

<一个href=\"http://stackoverflow.com/questions/16028944/ibm-worklight-5-0-6-how-to-add-a-splash-screen-to-android-environment\">IBM工作灯5.0.6 - 如何初始屏幕添加到Android环境 - 留在启动屏幕上

IBM Worklight 5.0.6 - How to add a splash screen to Android environment? - stay on splash screen

PhoneGap的 - 闪屏的Andr​​oid应用程序 - 不工作。

工作灯应用飞溅在Android 屏幕 - 黑屏

到现在为止,闪屏需要大约10秒的很多。我们测试三星注2和使用eclipse朱诺编译。

Until now the splash screen takes a lot around 10 seconds. We test it on Samsung Note 2 and compile it using eclipse Juno.

这是我们的源$ C ​​$ C的启动画面。

This is our source code for splash screen.

package com.WorklightMobile;

import android.os.Bundle;

import com.worklight.androidgap.WLDroidGap;

public class WorklightMobile extends WLDroidGap {

    @Override
    public void onCreate(Bundle savedInstanceState){
        super.onCreate(savedInstanceState);
        super.setIntegerProperty("splashscreen", R.drawable.splash);
    }

    /**
     * onWLInitCompleted is called when the Worklight runtime framework initialization is complete
     */
    @Override
    public void onWLInitCompleted(Bundle savedInstanceState){
        super.loadUrl(getWebMainFilePath(), 1000);
        // Add custom initialization code after this line
    }

}

检查了这一点我的回购 - https://github.com/datomnurdin/worklight-mobile

推荐答案

您不能。结果
在工作​​灯6.1.0目前的机制是消除对 EnvInit 飞溅的形象。

You cannot.
The current mechanism in Worklight 6.1.0 is remove the splash image on EnvInit.

你能尝试做的是去除色斑图像工作灯使用(本地\\水库\\绘\\ splash.9.png ),并实现自己的飞溅机制。

What you can try to do is to remove the splash image Worklight uses (native\res\drawable\splash.9.png) and implement your own splash mechanism.

这篇关于IBM工作灯6.1-如何减少闪屏持续时间约为1秒的Andr​​oid?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆