在android的空白的飞溅屏幕与phonegap修造 [英] blank splash screen on android with phonegap build
本文介绍了在android的空白的飞溅屏幕与phonegap修造的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我使用phonegap构建与phonegap 3,我不能让我的启动屏幕在Android设备上工作(没有测试ios)。没有错误和启动屏幕太...在apk我看到我的初始图像,这就像phonegap生成忽略他们在应用程序启动。
I use phonegap build with phonegap 3 and I can't make my splash screen working on android devices (no test on ios). No error and no splash screen too... In the apk I see my splash images, it's like phonegap build ignore them at the app launch.
这里我的config.xml file:
Here my config.xml file :
<?xml version="1.0" encoding="UTF-8" ?>
<widget xmlns = "http://www.w3.org/ns/widgets"
xmlns:gap = "http://phonegap.com/ns/1.0"
id = "com.phonegap.example"
versionCode = "10"
version = "1.0.0" >
<preference name="phonegap-version" value="3.0.0" />
<preference name="orientation" value="portrait" />
<!-- versionCode is optional and Android only -->
<!-- Core plugins -->
<gap:plugin name="org.apache.cordova.splashscreen" />
<gap:plugin name="org.apache.cordova.media" version="0.2.3" />
<name>ALLO</name>
<description>
Application mobile
</description>
<author href="https://www.mywebsite.fr" email="support@mywebsite.fr">
Henri Labarre
</author>
<gap:platform name="ios" />
<gap:platform name="android" />
<!-- icon -->
<icon src="res/icons/android/ldpi.png" gap:platform="android" gap:density="ldpi" />
<icon src="res/icons/android/mdpi.png" gap:platform="android" gap:density="mdpi" />
<icon src="res/icons/android/hdpi.png" gap:platform="android" gap:density="hdpi" />
<icon src="res/icons/android/xhdpi.png" gap:platform="android" gap:density="xhdpi" />
<icon src="res/icons/ios/icon.png" gap:platform="ios" width="57" height="57" />
<icon src="res/icons/ios/icon-72.png" gap:platform="ios" width="72" height="72" />
<icon src="res/icons/ios/icon_at_2x.png" gap:platform="ios" width="114" height="114" />
<!-- retina iPad support: PhoneGap 2.5.0+ only -->
<icon src="res/icons/ios/icon-72_at_2x.png" gap:platform="ios" width="144" height="144" />
<!-- splash screen -->
<gap:splash src="res/screen/android/ldpi.png" gap:platform="android" gap:density="ldpi" />
<gap:splash src="res/screen/android/mdpi.png" gap:platform="android" gap:density="mdpi" />
<gap:splash src="res/screen/android/hdpi.png" gap:platform="android" gap:density="hdpi" />
<gap:splash src="res/screen/android/xhdpi.png" gap:platform="android" gap:density="xhdpi" />
<access origin="http://mywebsite.fr" subdomains="true" />
</widget>
感谢
推荐答案
发现问题:调试模式失败的启动屏幕。删除时,它会按预期工作。
Found the problem : the debug mode fail the splash screen. When removing it, it works as expected.
这篇关于在android的空白的飞溅屏幕与phonegap修造的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文