Topic
IC4NOTICE: developerWorks Community will be offline May 29-30, 2015 while we upgrade to the latest version of IBM Connections. For more information, read our upgrade FAQ.
1 reply Latest Post - ‏2013-02-08T00:31:20Z by SystemAdmin
SystemAdmin
SystemAdmin
2327 Posts
ACCEPTED ANSWER

Pinned topic Splash screen not coming up in Android

‏2013-01-31T13:57:58Z |
Anybody have any idea for getting the splash screen working in Android?(Using 5.0.5 version of Worklight)

I have written the code in .java file as below

super.onCreate(savedInstanceState);
super.setIntegerProperty("splashscreen", R.drawable.splash);
super.loadUrl(getWebMainFilePath(),5000);

Also tried by following entry in config.xml

<plugin name="SplashScreen" value="org.apache.cordova.SplashScreen"/>

The above code shows me the splash screen but after few seconds it goes blank. My actual activity does not popup.

However, if i change the .java code as below, i do not get the splash screen

super.onCreate(savedInstanceState);
super.setIntegerProperty("splashscreen", R.drawable.splash);
Thread.sleep(5000);
super.loadUrl(getWebMainFilePath());
  • SystemAdmin
    SystemAdmin
    2327 Posts
    ACCEPTED ANSWER

    Re: Splash screen not coming up in Android

    ‏2013-02-08T00:31:20Z  in response to SystemAdmin
    EE2C_Dheeraj_Singla,

    It doesn't look like anyone has been able to respond to your post yet. Please see note below.
    Note: IBM forums are in the process of migrating to a new format. During migration the forums will be frozen and in read-only mode. If you wish to continue this thread discussion please post it on stackoverflow, where the Worklight team and others can respond.

    See the Forum Migration announce post for more details. Thank you.

    Barbara Hampson, Manager, IBM Worklight