Cordova Splashscreen for android not showing when delay value too small -


i use cordova 5.0.0 splashscreen support integrated. used code documentation:

<platform name="android">     <splash src="res/splash/android/splash-land-hdpi.png" density="land-hdpi" />     <splash src="res/splash/android/splash-land-ldpi.png" density="land-ldpi" />     <splash src="res/splash/android/splash-land-mdpi.png" density="land-mdpi" />     <splash src="res/splash/android/splash-land-xhdpi.png" density="land-xhdpi" />      <splash src="res/splash/android/splash-port-hdpi.png" density="port-hdpi" />     <splash src="res/splash/android/splash-port-ldpi.png" density="port-ldpi" />     <splash src="res/splash/android/splash-port-mdpi.png" density="port-mdpi" />     <splash src="res/splash/android/splash-port-xhdpi.png" density="port-xhdpi" /> </platform>  <preference name="splashscreen" value="screen" /> <preference name="splashscreendelay" value="5000" /> 

so understanding value parameter of splashscrendelay should time how long splashscreen showing. however... splashscreen never showing on android.

yes added plugin:

cordova plugin add cordova-plugin-splashscreen 

and built project.

when set following value:

<preference name="splashscreendelay" value="50000" /> 

the splashscreen showing 50 seconds. why isnt splashscreen showing 5 seconds when set 5000?

edit 1 - location of splash images

my images stored in root folder of cordova project:

myproject/res 

at same level config.xml.

edit 2 - minimum delay

if helps: found out minimum delay splash screen working 40000. cant serious minimum delay. cant figure out why working 40000 delay not 5000 delay.

the problem lays on files being sourced.

/platform/android/res  

theoretically on build files should copied drawable folder. put files in root folder www , platforms. check see if there errors coming in log when build.


Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -