在闪屏显示后显示我的 Worklight 主页时出现问题。(有关信息,我的应用程序之前运行良好)。
在 res/drawable(s) 文件夹中添加许多 spashscreen.png 文件后,我更新了 .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!
感谢您的帮助。