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 8612329
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T04:35:58+00:00 2026-06-12T04:35:58+00:00

Im working on phonegap 1.9 , android, eclipse 4.2, jquerymobile i want to display

  • 0

Im working on phonegap 1.9 , android, eclipse 4.2, jquerymobile i want to display splash screen.I have used this article. Its working fine in android simulator but when i build application using build.phonegap.com/apps/MyAppId/builds and run it on ipad default splash screen appears here is my code ,i have placed icons and spalshscreen images in their respective folders

java activity code

 public class MyPhoneGapActivity extends DroidGap {
        @Override
        public void onCreate(Bundle savedInstanceState) {
            super.onCreate(savedInstanceState); 
            super.setIntegerProperty("splashscreen", R.drawable.ic_launcher);
            super.loadUrl("file:///android_asset/www/index.html",5000);
         }
        }

javascript code

 <script type="text/javascript" charset="utf-8">

        var onDeviceReady = function() {    
        cordova.exec(null, null, "SplashScreen", "hide", []);
            document.getElementById("devready").innerHTML = "";
        };

        function CheckDeviceReady() {
            document.addEventListener("deviceready", onDeviceReady, true);
        }  

</script>  

  <body onload="CheckDeviceReady();" id="stage" class="theme">
<div id="devready" data-theme="b">Device not ready..</div>
</body>
  • 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-06-12T04:36:00+00:00Added an answer on June 12, 2026 at 4:36 am

    PhoneGap Build only your web assets. It doesn’t build any native source code (MyPhoneGapActivity.java). You can find .apk file in Eclipse project bin folder

    create config.xml file in www folder and put splash image in “splash/android/” folder and then build in phonegap site. for more details see https://build.phonegap.com/docs/config-xml

    www/config.xml:

    <?xml version="1.0" encoding="UTF-8"?>
    <widget xmlns = "http://www.w3.org/ns/widgets"
        xmlns:gap = "http://phonegap.com/ns/1.0"
        id        = "com.phonegap.example"
        version   = "1.0.0">
      <name>Sample</name>
      <description>
        Sample
      </description>
      <preference name="phonegap-version" value="2.0.0" />
    
      <!-- Icons -->
      <icon src="icon.png" />
    
      <icon src="icons/ios/icon.png" width="57" height="57" />
      <icon src="icons/ios/icon-72.png" gap:platform="ios" width="72" height="72" />
      <icon src="icons/ios/icon_at_2x.png" width="114" height="114" />
    
      <icon src="icons/android/ldpi.png" gap:platform="android" gap:density="ldpi" />
      <icon src="icons/android/mdpi.png" gap:platform="android" gap:density="mdpi" />
      <icon src="icons/android/hdpi.png" gap:platform="android" gap:density="hdpi" />
    
    
      <!-- Splash Screens -->
      <preference name="orientation" value="default" />
      <preference name="fullscreen" value="true" />
      <preference name="webviewbounce" value="false" />
      <preference name="show-splash-screen-spinner" value="false" />
    
      <gap:splash src="splash.png" />
    
      <gap:splash src="splash/ios/Default.png" width="320" height="480" />
      <gap:splash src="splash/ios/Default_at_2x.png" width="640" height="960" />
      <gap:splash src="splash/ios/Default-Landscape.png" width="1024" height="768" />
      <gap:splash src="splash/ios/Default-Portrait.png" width="768" height="1024" />
    
      <gap:splash src="splash/android/ldpi.png" gap:platform="android" gap:density="ldpi" />
      <gap:splash src="splash/android/mdpi.png" gap:platform="android" gap:density="mdpi" />
      <gap:splash src="splash/android/hdpi.png" gap:platform="android" gap:density="hdpi" />
      <gap:splash src="splash/android/xhdpi.png" gap:platform="android" gap:density="xhdpi" />
    
    </widget>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am developing an Android app using Phonegap and jQueryMobile, working in Eclipse. I
I have Phonegap's Facebook plugin working perfectly within my Android app. This plugin uses
I m developing app using android-phonegap . its working fine when i call webservice
I am working on PhoneGap for android and it use cordova-1.5.0.jar, I want to
I'm working on a Phonegap application.I have used header for every page. But when
I have a strange issue in phonegap framework. I want to display PDF file
currently i am working with phonegap in android.i want to disply twits of one
I have started to working with phoneGap application for android. I followed the steps
I'm working on a PhoneGap app and I have this piece of code in
I am working on phonegap android application. this is entirely new to me. I

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.