我正在尝试将字符串转换为类名。我的代码是:
app.actNum = "third.class";
in.close();
//on test
// Intent intent = new Intent(this.context,Class.forName(app.actNum));
Intent dialogIntent = new Intent(getBaseContext(), Class.forName(app.actNum));
但得到
get ClassNotFoundException on Class.forName android