3

I am using cordova2.6 for my app. I can set splash screen using the SplashScreen api comes with cordova. That works fine too but when I tried to use

<gap:splash src="splash/android/ldpi.png" gap:platform="android" gap:density="ldpi" />

inside the config.xml, it says "gap" is an undefined prefix and throws error. can someone explain what I am doing wrong here.

Thanks in advance

Pradeep CR
  • 517
  • 2
  • 5
  • 14

2 Answers2

0

In your Android App folder go to the res folder and put the splashscreen inside drawable drawable-hdpi drawable-mdpi ... folders with good size :)

TheLazyFox
  • 1,065
  • 3
  • 11
  • 27
0

You might have problem in tag definition. Do you have this property: xmlns:gap = "http://phonegap.com/ns/1.0"

besimple
  • 444
  • 1
  • 7
  • 12