黑色闪屏 - PhoneGap的生成(Android版)
问题描述:
我使用这个code以添加我的闪屏与PhoneGap的生成配置文件:
I'm using this code to add my Splash Screen in the config file with Phonegap Build:
<gap:splash src="mdpi-logo.9.png" gap:platform="android" gap:qualifier="mdpi" />
<gap:splash src="hdpi-logo.9.png" gap:platform="android" gap:qualifier="hdpi" />
<gap:splash src="xhdpi-logo.9.png" gap:platform="android" gap:qualifier="xhdpi" />
<gap:splash src="xxhdpi-logo.9.png" gap:platform="android" gap:qualifier="xxhdpi" />
但是,当我安装我的Android上plataform的应用程序,它不工作,它显示黑屏它显示了应用程序之前。
But, when I installed my app on Android plataform, It doesn't work, It shows a black screen before it shows the app.
答
如果,可以帮助你,当我用预选赛,而不是密度,如果我想的闪屏的工作,我必须配置:
If that can help you when I used qualifier instead of density, if I want that the Splash Screen work I have to configure :
<preference name="SplashScreen" value="splash" />
而不是
<preference name="SplashScreen" value="screen" />