输入Activity name即可
private voidIntentView(String name) {
try{
//这方法是需要多次跳到另一个Activity的封装,"com.deng.noopsychehome."当前项目的包名
Class classname = Class.forName("com.deng.noopsychehome."+name);
Intent intent=newIntent();
intent.setClass(this,classname);
startActivity(intent);
}catch(ClassNotFoundException e) {
e.printStackTrace();
}
}