What is the best way to load a class within the onCreate
statement of an activity? I have two classes, one (titled second) is to be "loaded" when the main activity begins. Hopefully my example code will better explain what I'm trying to say:
@Override
protected void onCreate(Bundle savedInstanceState) {
// TODO Auto-generated method stub
super.onCreate(savedInstanceState);
setContentView(R.layout.somelayout);
<some class here>;
}
I have been trying a few things, one for example is: Date.class.cast(null);
Any suggestions would be appreciated.