In my onCreate method for the first loaded Activity I have:
super.onCreate(savedInstanceState);
final int splash = R.layout.splash;
setContentView(splash);
This causes the app to crash. But if I use:
super.onCreate(savedInstanceState);
setContentView(R.layout.splash);
everything is fine. What gives?
The only reason I am experimenting with this is because I want to load different layouts based on a set of data-driven options that will come from another class depending on the customer's choices.