Home:ALL Converter>How to make an Android Studio Project (Java) code be compiled for compatibility with Cross Platform devices?

How to make an Android Studio Project (Java) code be compiled for compatibility with Cross Platform devices?

Ask Time:2015-06-29T01:39:58         Author:abitcode

Json Formatter

Is it possible for an Android Studio Project to be Cross Platform compatible? Or is it possible only with C# languages for Xamarin or other cross platform tools where Java is not the primary language.

I am a Java Developer and just dived in Android and want to build Cross Platform compatible apps using Java (or use the same Android Project code).

Thanks in advance.

Author:abitcode,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/31102756/how-to-make-an-android-studio-project-java-code-be-compiled-for-compatibility
Oscar Vicente Perez :

If you use model-view-controler pattern you can do it but in different projects.\n\nIf you abstract all the code that doesn't belong to the view you can copy it in other project and compile it with javac instead of with the android SDK. But you still have to make the view for the two projects.",
2015-06-28T17:52:34
yy