Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I use Java for building cross-platform mobile apps? [closed]

I have read an article about Xamarin was buying RoboVM and enables developers to write mobile apps in Java for cross-platform. I am not sure if it is possible now to use Java for developing cross-platform mobile apps. Is there any reliable tools where I can write in Java for cross-platform mobile apps development? Is it a good choice to choose Java only for potential cross-platform mobile apps? I don't consider using C, C++, C# for that purpose since I have never been focusing on one of them. I apologize for the fans of those langauges. Or Is it a better choice that I better work with Java for Android apps and Swift for iOS apps? I plan to choose Java as a main language for all web apps, cross-platform mobile apps and robotic programming development.

like image 808
O Connor Avatar asked Mar 25 '16 03:03

O Connor


People also ask

Can I make cross-platform apps with Java?

Using the Java cross-platform framework, JDK port, or a simple translation of Java code to Objective-C Java development for iOS apps is entirely possible.

Can we use Java to in creating mobile applications?

Java is a versatile and powerful programming language that can be used for developing a wide range of applications. It is platform-independent, which means it can be run on any platform, including Android and iOS.

Is Java good for cross-platform?

Java is cross-platform because the program's source code is compiled into bytecode. The bytecode is then executed by the Java JVM that has been written for the specific hardware platform. Therefore, the bytecode is expected to run the same way on all hardware platforms with Java virtual machines.

Can I make iOS app with Java?

Yes, you can develop iOS apps without Swift using a compiler that can compile your code down to native iOS binary. Can I develop iOS apps with Java? Yes, if you are a Java developer, you don't need to learn Swift or Objective-C to develop iOS apps. You can use Codename One to develop iOS apps using Java or Kotlin.


1 Answers

I've been using Codename One for quite a while now. Libgdx wasn't exactly an option as I'm not a game developer.

I played a bit with RoboVM before picking Codename One and it seems that it's more about Java for iOS and not about WORA (Write Once Run Anywhere). This might be a good choice for you if that's what you want but I prefer WORA. I tried the RoboVM FX bindings and they were just horribly broken in basic ways.

A few things I love about Codename One are:

  1. Support - I have never used a product with such amazing free support. You get answers within a day at the latest and that really sealed the deal for me.

  2. No need for a Mac - I use my Mac at home but in the office I need a PC.

  3. Customization and familiarity - this is pretty much Swing but WAY better. Like we always wanted Swing to be as they put it...

The docs used to suck but they made a big push on it and it shows. Now if only they could fix the IntelliJ/IDEA plugin to the level of the NetBeans plugin I'd be golden!

like image 200
Derek Johnson Avatar answered Sep 23 '22 00:09

Derek Johnson