2013-03-08 65 views
1

我在启动画面显示后遇到了显示我的Worklight主页的问题。 (有关信息,我的应用程序之前运行良好)。工作灯应用程序的页面在启动画面后无法加载

在水库增加了许多spashscreen.png文件后/绘制(S)的文件夹,我已经更新了Java代码在我的.java主页类:

super.setIntegerProperty("splashscreen", R.drawable.splashscreen); 
super.loadUrl(getWebMainFilePath(), 5000); 

然后我说我的.html以下主页:

<script type="text/javascript"> 
$(document).ready(function(){ 
// hide splash-screen 
    navigator.spashscreen.hide(); 
    } 
</script> 

飞溅屏幕显示良好,5秒后屏幕变黑。

这里是我的HTC设备的错误日志:

03-08 16:08:08.354: E/libEGL(2722): call to OpenGL ES API with no current context (logged once per thread) 
03-08 16:08:08.354: E/SurfaceTexture(1446): [SurfaceView] abandon: surfaceTexture(0x0x9df580) has been abandoned! 
03-08 16:08:08.724: E/SurfaceTexture(1446): [Starting com.Maquette] abandon: SurfaceTexture(0x0xa1ca18) has been abandoned! 
03-08 16:08:08.744: E/SurfaceTexture(1446): [com.htc.launcher/com.htc.launcher.Launcher] abandon: SurfaceTexture(0x0xa5ce18) has been abandoned! 
03-08 16:08:13.068: E/SurfaceTexture(1446): [com.Maquette/com.Maquette.Maquette] abandon: SurfaceTexture(0x0x9df580) has been abandoned! 

thanx的帮助。

回答

1

你可能想尝试通过@ user2124658在这个线程给出的答案:Worklight App Splash Screen on Android

如果你是在工作灯5.0.5.x试试这个:

public void onCreate(Bundle savedInstanceState) { 
    super.onCreate(savedInstanceState); 
    super.loadUrl(getWebMainFilePath()); // yes, this is an extra invocation 
    super.setIntegerProperty("splashscreen", R.drawable.splash); 
    super.loadUrl(getWebMainFilePath(), 5000); 
} 

如果你是在工作灯5.0 .6.x试试这个:

public void onCreate(Bundle savedInstanceState){ 
    super.onCreate(savedInstanceState); 
    super.setIntegerProperty("splashscreen", R.drawable.splash); 
    super.bindBrowser(appView); 
    super.loadUrl(getWebMainFilePath(), 5000); 
} 
+0

我只是陷入了同样的问题,谢谢伊丹它适用于我。 – 2013-06-12 09:29:30

相关问题