Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android without Java

After doing the whole "enterprise" programming for a while, I'm seriously disillusioned by the language itself and always feel quite hampered if I have to go back to it. The project size of your average Android app isn't too intimidating and the libraries are actually quite nice regarding their coding style, but if I could avoid Java, I'd certainly do.

So that's the question: Can I avoid it? While there are lots of JVM language that would be an option on desktops and servers, the Dalvik VM and the devices themselves pose some limits. This seems to be a bit better in 2.2 with the JIT, but limiting myself to the cutting edge would be a rather harsh decision.

The only alternative I know that's used somewhat seems to be Scala. Is there some possibility I'm missing? Clojure seems to run in exactly the problems I've illustrated above with Dalvik, but as the AppInventor is built on Kawa there might be hope for a Lisp on the mobile platform?

What other languages are already usable or make strides towards that?

like image 989
mhd Avatar asked Jul 13 '10 22:07

mhd


People also ask

Can I make Android app without Java?

Despite not using Java to build Android apps, Xamarin allows you to create native apps that achieve a good user experience, which is a core aspect that any respectable app must-have. Furthermore, Xamarin supports developing cross-platform applications in case you need to develop such an app.

Is Java compulsory for Android?

Java. The most basic building block of Android development is the programming language Java. To be a successful Android developer, you'll need to be comfortable with Java concepts like loops, lists, variables, and control structures.

Will Android stop supporting Java?

Absolutely. Java is still 100% supported by Google for Android development. The majority of Android apps today have some mix of both Java and Kotlin code. Developers can build the same functionality with Java as they can with Kotlin.

Will Google remove Java from Android?

Now, Google has confirmed that it will be doing away with all the standard Java APIs in the next version of Android.


2 Answers

Personally, I'd say Scala is your best bet right now. It works really well, with the one drawback being that you are required to include Scala as a dependency (which will increase the size of your application).

  • Scala Programming for Android
  • Can I program for Android using any JVM language?
  • Getting Started Programming in Dynamic Languages in Android
like image 81
dbyrne Avatar answered Oct 11 '22 11:10

dbyrne


Have you looked at Mirah? It gives you a Ruby-like syntax and compiles to Java. It’s been labeled the CoffeeScript of Java.

like image 34
apg Avatar answered Oct 11 '22 12:10

apg