Skip to content

Instantly share code, notes, and snippets.

@sseletskyy
Created November 11, 2013 11:31
Show Gist options
  • Save sseletskyy/7411868 to your computer and use it in GitHub Desktop.
Save sseletskyy/7411868 to your computer and use it in GitHub Desktop.
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")
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment