sseletskyy
11/11/2013 - 11:31 AM

custom change to show splash screen

custom change to show splash screen

...
import com.cloudconsulting.Main.R;

public class Main extends CordovaActivity 
{
    @Override
    public void onCreate(Bundle savedInstanceState)
    {
        super.onCreate(savedInstanceState);
        super.init();
        // Set by <content src="index.html" /> in config.xml
        super.setIntegerProperty("splashscreen", R.drawable.splash);

        //super.loadUrl(Config.getStartUrl());
        super.loadUrl("file:///android_asset/www/index.html", 3000);

        // Set by <content src="index.html" /> in config.xml
        //super.loadUrl(Config.getStartUrl());
        //super.loadUrl("file:///android_asset/www/index.html")
    }
}