graphicmist

Techno-bits and some graphical adventures of my life

Android, Mobile app dev

How to add splash screen to an android app in phonegap

To add a splash screen to your android app in phonegap, you need to make sure of few things.

  1. You are using 0.9.3 or higher version of phonegap.
  2. Add
    super.setIntegerProperty("splashscreen", R.drawable.splash);
    to DefaultActivity.Java (which is your main java file) in the onCreate method just before the
    loadUrl("file///asset_android/www/index.html")
  3. Make sure splash is the name of your file like splash.jpg or splash.png in the appropriate place in the “res” directory.

Deploy your code again and see your splash screen just before the app starts.

Enjoy,
Cheers!!!

4 comments

  1. Kimberly - January 15, 2012 12:17 pm

    Cool blog!

    Reply
  2. graphicmist - January 15, 2012 5:38 pm

    Thanks a lot.

    Reply
  3. george - April 25, 2013 12:50 pm

    nothing display as usual directly www folder code running no splash screen display …..

    Reply
    • graphicmist - August 17, 2013 12:28 pm

      This is a old post… things would have changed in new version of phonegap

      Reply

Leave a Reply

Your email address will not be published. Required fields are marked *