If I have an Activity class called TestActivity in my application, is there a way to get its class by its name like in this example:
Class<?> c = getClassByName("TestActivity");
use forName instead..
something like this..
try { Class<?> act = Class.forName("com.bla.TestActivity"); } catch (ClassNotFoundException e) { e.printStackTrace(); }
1.4m articles
1.4m replys
5 comments
57.0k users