Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6828733
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T22:25:03+00:00 2026-05-26T22:25:03+00:00

Could anybody please advise how I can add a splash screen to my HTML5

  • 0

Could anybody please advise how I can add a splash screen to my HTML5 Phonegap based Android App. I just want it to display for 5 seconds on load. Also – can anybody advise what dimensions the splash screen should be.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T22:25:04+00:00Added an answer on May 26, 2026 at 10:25 pm

    In order to have a splash screen in a PhoneGap Android application you need to put your splash.png file into res/drawable-ldpi, res/drawable-mdpi, res/drawable-hdpi, res/drawable-xhdpi. Where those directories represent low, medium, high and extra large dots per inch. You’ll need to resize you splash.png (the file name is important here) for each directory or Android will stretch it for you.

    The sizes of each image should be:

    • xlarge (xhdpi): at least 960 x 720
    • large (hdpi): at least 640 x 480
    • medium (mdpi): at least 470 x 320
    • small (ldpi): at least 426 x 320

    Then in your main Java class, the one that extends DroidGap, you’ll need to add one line and modify another. First add:

    super.setIntegerProperty("splashscreen", R.drawable.splash);
    

    this line should show up under super.onCreate but before super.loadUrl. Then you’ll need to modify your loadUrl method to pause for 5 seconds before loading up the main page. It would look like this:

    super.loadUrl("file:///android_asset/www/index.html", 5000);
    

    That should do it for you.

    I’ve recently made some updates to how the SplashScreen works on PhoneGap Android. The main app now loads while the splash screen is being shown. This is a big improvement over the previous blocking splash screen call. Read more about the changes on my blog.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Please how can I rewrite Could anybody please rewrite this url? http://localhost/display_news_cat.php?news_cat_id=14&p=2 to http://localhost/display_news_cat/14/2
Could anybody please help me to write rewriterule, that redirects http<->https (back and force
Could anybody please tell me why i am getting java.text.ParseException: Unparseable date in the
Could anybody please let me know under which cases LDAP would be prefered rather
Could anybody please tell me which is best guide/book/material for socket programming in C?
Is anybody using Python 2.3 for Leopard? If so, could you please tell me
Could anybody please explain how the Core Classloader loads resources when, for instance, surefire
Can anybody advise me how to make a validation rule for Dutch bank accounts?
I am new to PostgreSQL. Could anybody please correct this query. BEGIN TRANSACTION; BEGIN;
Could anybody please tell me what is the main difference between C & C++

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.