Community
cancel
Showing results for 
Search instead for 
Did you mean: 
James_R_6
Beginner
54 Views

Splash & Icons Not Loading

I can not get my app to load the splash screen or icons.I have the Luanch Icons and Splash screen empty inside the XDK, but I defeind them in intelxdk.config.additions.xml. In the build log, i see "This app does not have launcher icons defined". Any sugguestions?

Here is copy of the additions.xml. 

<supports-screens android:anyDensity="true" android:smallScreens="true" android:normalScreens="true" android:largeScreens="true" android:resizeable="true" android:xlargeScreens="true" />

<preference name="debuggable" value="false" />

<platform name="ios">
    <preference name="AutoHideSplashScreen" value="false" />
    <preference name="FadeSplashScreen" value="false"/>
    <preference name="FadeSplashScreenDuration" value="2"/>
    <preference name="ShowSplashScreenSpinner" value="false"/>
    <preference name="StatusBarOverlaysWebView" value="false" />
    <preference name="StatusBarBackgroundColor" value="#000000" />
    <preference name="StatusBarStyle" value="lightcontent" />
</platform>

<platform name="android">
 
     <icon src="package-assets/android/icon-ldpi.png" density="ldpi" />
     <icon src="package-assets/android/icon-mdpi.png" density="mdpi" />
    <icon src="package-assets/android/icon-hdpi.png" density="hdpi" />
    <icon src="package-assets/android/icon-xhdpi.png" density="xhdpi" />
    <icon src="package-assets/android/icon-xxhdpi.png" density="xxhdpi" />
    <icon src="package-assets/android/icon-xxxhdpi.png" density="xxxhdpi"/>

    <splash src="package-assets/android/res-long-land-hdpi/default.png" density="land-hdpi" />
    <splash src="package-assets/android/res-long-land-ldpi/default.png" density="land-ldpi" />
    <splash src="package-assets/android/res-long-land-mdpi/default.png" density="land-mdpi" />
    <splash src="package-assets/android/res-long-land-xhdpi/default.png" density="land-xhdpi" />
    <splash src="package-assets/android/res-long-land-xxhdpi/default.png" density="land-xxhdpi" />
    <splash src="package-assets/android/res-long-land-xxxhdpi/default.png" density="land-xxxhdpi" />
    <splash src="package-assets/android/res-long-port-hdpi/default.png" density="port-hdpi" />
    <splash src="package-assets/android/res-long-port-ldpi/default.png" density="port-ldpi" />
    <splash src="package-assets/android/res-long-port-mdpi/default.png" density="port-mdpi" />
    <splash src="package-assets/android/res-long-port-xhdpi/default.png" density="port-xhdpi" />
    <splash src="package-assets/android/res-long-port-xxhdpi/default.png" density="port-xxhdpi" />
    <splash src="package-assets/android/res-long-port-xxxhdpi/default.png" density="port-xxxhdpi" />

    <resource-file src="package-assets/android/icon-hdpi-tp.png" target="res/drawable-hdpi/ic_stat_onesignal_default.png" />
    <resource-file src="package-assets/android/icon-mdpi-tp.png" target="res/drawable-mdpi/ic_stat_onesignal_default.png" /> 
    <resource-file src="package-assets/android/icon-xhdpi-tp.png" target="res/drawable-xhdpi/ic_stat_onesignal_default.png" /> 
    <resource-file src="package-assets/android/icon-xxhdpi-tp.png" target="res/drawable-xxhdpi/ic_stat_onesignal_default.png" /> 
    <resource-file src="package-assets/android/icon-xxxhdpi-tp.png" target="res/drawable-xxxhdpi/ic_stat_onesignal_default.png" /> 
    
    <preference name="SplashMaintainAspectRatio" value="true" />
    <preference name="AutoHideSplashScreen" value="false" />
</platform>

<!-- use this feature to add command-lines to be used by Crosswalk builds on device -->
<!-- see http://peter.sh/experiments/chromium-command-line-switches/ for complete list -->
<intelxdk:crosswalk xwalk-command-line="--disable-pull-to-refresh-effect" />
<!-- ignore gpu blacklist for larger collection of gpu accelerated devices -->
<intelxdk:crosswalk xwalk-command-line="--ignore-gpu-blacklist" />

 

 

 

Tags (2)
0 Kudos
1 Reply
PaulF_IntelCorp
Employee
54 Views

Remove the definitions from the additions file and use the UI to identify your icons and splash screens. Then use the additions file to address any that the UI does not. Then look at the "intelxdk.config.android.xml" file for a precise view of how those preference tags should look in our additions file. The additions file simply gets added to the end of each of the automatically generated intelxdk.config.*.xml files.

Reply