Splash screen in android -


i having application have splash screen. problem need splash screen pinwheel spinner(progress bar). have added android java code.

java code

package com.ssf;  import android.os.bundle; import android.widget.toast;  import com.worklight.androidgap.wldroidgap;  public class ssf extends wldroidgap {      @override     public void oncreate(bundle savedinstancestate){         super.oncreate(savedinstancestate);      }      /**      * onwlinitcompleted called when worklight runtime framework initialization complete      */     @override     public void onwlinitcompleted(bundle savedinstancestate){           super.loadurl(getwebmainfilepath());          // add custom initialization code after line     }  } 

having splash screen redundant, , should avoided unless maybe it's first run of app. users open app , start using right away.

only heavy apps (mostly games ) need load lot of things, there, there plenty of optimizations make short (just load needs in near future, example).

anyway, progress bar, create layout progress bar view in middle, use "setcontentview" on it, , that's it...

you can customize progress bar yourself, example using this post.


Comments

Popular posts from this blog

database - VFP Grid + SQL server 2008 - grid not showing correctly -

jquery - Set jPicker field to empty value -

.htaccess - htaccess convert request to clean url and add slash at the end of the url -