I want to do a test for a condition in an Activity's onCreate() which if true will call finish(). Is there any code which must be called before finish() is called? (And must any code be run after finish() is called?)
e.g.
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState); // I'm pretty sure this is always required
setContentView(R.layout.activity_main); // is this required?
finish();
}