In order to add a splash screen to an Android app built with PhoneGap you have to perform the following steps:
In order to prepare the splash screen images for Android, create several versions, one for each screen size, of the splash screen and save them in the
res/drawable-screensize
folder (please refer to the official documentation available at http://developer.android.com/tools/help/draw9patch.html in order to create 9-patch images).Note
The
res
folder can contain images, pictures, and so on. Each time a new resource is added to this folder it's automatically defined in theR.java
class asstatic int
values so that you can access it easily in your app. Thedrawable
folders are the ones where you can put one image per folder, sized to match the indicated screen density.In order to prepare the splash screen images for iOS, copy the images into the iOS project's
Resources/splash
directory. Only add the images for the devices you want to...