I'm trying to figure out how to go to different activity depending on some parameter.
Please help me... The code below is my code though it doesn't work.
String className;
if (Parameter == 0) {
className = "class.A." + Parameter + "Activity.class";
} else if (Parameter == 1) {
className = "class.B." + Parameter + "Activity.class";
}
//activityClass = (Cast className to Class);
Intent intent = new Intent(ExampleActivity.this, activityClass);
intent.setAction(Intent.ACTION_VIEW);
startActivity(intent);