Looking for the best way that I can define a class without knowing its name at the time of compilation. In PHP, this is done as follows:
$className = 'testclass';
$myClass = new $className();
In contrast, already in Java so do not be. I know it's ClassLoader, but I'm not sure if Android does so the same thing. I would ask for a specific code or even tips on how I can do it.
Regards.