Class For Name Requires Full Path And Cant Find With Just The Class Name - Android
I'm trying to use Class.forName() method with just the name of my file. In my case it's 'MainActivity' But when I try to use it in a try catch block it cant find the Class with nam
Solution 1:
If you are using the same package for all classes then you can set that as a constant and append to your class. Otherwise you will need to specify the whole package name.
Post a Comment for "Class For Name Requires Full Path And Cant Find With Just The Class Name - Android"