Run different java code depending on the os (Windows/Android) -
I have a project that would be good to include code code between Java and Windows on Java. In fact, I am trying to instantiate the core class on the basis of my OS.
Problems facing the problem I do not know how the error without the Android code windows in Java on Windows ...
In an ideal world, Would like to use:
ACLs class = FACTORY.GATE INSTAGENCE ("ACLISUS"); And on the basis of the factory OS, a new example of the right square will be returned.
I do not know that I have understood
Thank you very much!
System.GetProperty ("Os.name") gives you the operating system that works on you .
But Java in Android and Java in Java are really very different cases.
Comments
Post a Comment