문자열을 클래스 이름으로 변환하려고합니다. 내 코드는 다음과 같습니다문자열을 클래스 이름으로 변환하는 방법
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
은 "actNum"클래스는 NAme입니까? –