Back to Top

How to set Icons and Splash Screens in PhoneGap App?

To set Splash Image/Icon in Android with Phonegap

In series post of PhoneGap ,I have explained basic about PhoneGap and Internet connection issue in Android so Today I am going to explain about to set Icons and Splash Screens in PhoneGap App in Android.

The splash screen is an image which appears while a program is loading so it’s very important and the first screen when working with an android application.

First of all,Go to res folder of your project and add created splash image into desired drawable folder.

res folder will have the following kind of folders:

drawable-res

Now, Go to src//MainActivity.java and place following line of code and place line under super.onCreate function but before super.loadUrl.After below line you need to modify your loadUrl method to pause for 5-10 seconds before loading the main page.

Next,Check your res/xml/config.xml file in that splashscreen plugin is enable:

To hide splash screen into the main page.

That’s it. This is all about splash screen now let’s see how to set icon in an android application with PhoneGap.

You need to place your icon image into same drawable Resource Folder in .png format and then set it in the AndroidManifest.xml file’s Application Tab.

Also Read:

To use JSON Response of Webservice in Phonegap Android
Save Image/File into sd card in Android using PhoneGap
To setup SQLite for Android-Phonegap application

Don’t hesitate to use this code in your Android application and post your comments if you need help. As always, thanks for reading. Don’t Forget to Follow us on Twitter or Subscribe us to Get the Latest Updates.

Leave a Reply

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

Most Popular Posts

How to create MySQL User Defined Functions

Posted on 5 years ago

Bhumi

How to use WebService in PHP

Posted on 3 years ago

Bhumi

How to use WordPress Heartbeat API?

Posted on 2 years ago

Bhumi

Overview of ECMAScript 6 new Features

Updated 18 years ago

Bhumi

Getting started with Amazon Web Services

Updated 18 years ago

Bhumi

Facade implementation in Laravel

Updated 18 years ago

Bhumi

The Reader’s Poll – June 2015

Posted on 2 years ago

Bhumi

The Reader’s Poll – August 2014

Posted on 3 years ago

Bhumi

The Reader’s Poll – June 2014

Posted on 3 years ago

Bhumi

The Readers’ Poll – May 2014

Posted on 3 years ago

Bhumi

The Readers’ Poll – August 2013

Posted on 4 years ago

Bhumi