I have an array of Classes, like this:
private static final Class[] testerClasses={
Tester1.class
};
I need it to be like this, so I can start Android intents, like this:
intent =new Intent(this,testerClasses[0]);
startActivity(intent);
I'm trying to figure out how to do the following, and I'm really struggling to figure out how to do it...
- I need to call functions from an instance of the class. For the most part, these are static or static like functions, so merely getting an instance of the function is sufficient.
- I need to make sure I can pass the class as the Intent structure requires.
Why do I want to do this? Sometimes I want to call the function like an intent, other times I just want to get data about the intent, without having to call it. My abstractTester class (Of which all concrete tester classes inherit from) contains a few things like the name of the test, which is handy to have before the Intent has even started.
Thanks for the help!