Intent p = new Intent(StartScreen.this, Setting.class);
p.putExtra("class","packagename.classname");
Bundle extras = getIntent().getExtras();
String classname=extras.getString("class");
Class<?> clazz = Class.forName(classname);
Intent i = new Intent(Setting.this, clazz);
startActivity(i);