Here is the code with which you can start your activity using the activity name
Class<?> c = null;
if(StringClassname != null) {
try {
c = Class.forName(StringClassname );
} catch (ClassNotFoundException e) {
e.printStackTrace();
}
}
Intent intent = new Intent(mail.this, c);
startActivity(intent);
Here the class name will be the fully qualified class name with the package name. For example, if your package name is xyz, and if you have an action name A, then the full name of Activity A will be xyzA