I need to use the same class on two diffwrent platform-SDKs.
Although the class and its methods are the same the path to access the class is different. On one device I need to use:
import a1.a2.classname
while for the second device I need to use:
import b1.b2.b3.classname
Please don't ask me why: I did not write the SDKs and I can't change them.
So the question is: how would you do it? Is there a way to import different versions of the same class on different sdk versions?
In C++ I would use a precompiler switch like:
#ifdef SDK1
#include "path1/class.h"
#else
#include "path2/class.h"
#endif
How would you do this in java?
Please consider that I can't derive from the class because I have access to its interface only and the number of methods is too big to think about using a proxy