Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Web and WebWorks Development

Reply
Developer
ravi1989
Posts: 773
Registered: ‎07-21-2012
My Device: 9810
My Carrier: 0

Set different splash time in android using phone gap

Hi

 

I want to set different splash screen time First time time application launch splash screen time is 5 sec  and other than first time it should be 2 sec how to do that.?

 

 

I used this code

 

public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);

setContentView(R.layout.main);
super.init();
super.clearCache();
super.setIntegerProperty("splashscreen", R.drawable.splash);
super.loadUrl("file:///android_asset/www/index.html",15000);
// super.loadUrl("file:///android_asset/www/index.html");
//super.setIntegerProperty("loadUrlTimeoutValue", 10000);





}

 

 

Thanks

Please use plain text.
Developer
Developer
LBP
Posts: 607
Registered: ‎04-29-2011
My Device: PlayBook 16GB, BB10 LE Z10 (red)
My Carrier: none

Re: Set different splash time in android using phone gap

Double posted and tried to answer this question here: http://supportforums.blackberry.com/t5/Web-and-WebWorks-Development/Show-Splash-screen-until-applica...


"Like" if you liked the post.
"Accept as Solution" if the post solves your question.
Please use plain text.