The instructions you have are very outdated. You can now run:
cordova plugin add org.apache.cordova.splashscreen
Then you don't have to modify app.java
Also, make sure to have values set in config.xml
:
<preference name="SplashScreen" value="splash" />
//splash is the name of the image without the extension
<preference name="SplashScreenDelay" value="20000" />
//delay is optional
Additionally, make sure that for android the image is in the /platforms/android/res/drawable
folder(s).
Lastly, make sure to run cordova build
or cordova run
after making these changes