Can I program for android using any JVM language?


Can I use other JVM languages besides Java (e.g. jruby, jython, clojure) to program for android, or is it java only?

There was a similar question asked over a year ago but I wasn't sure if there'd been any change since then.

5/23/2017 12:14:28 PM

Accepted Answer

Check out these links:

However, I am unaware of any prominent applications that have been coded in any of these languages. The examples I've seen fall more into the "proof of concept" category. While the cool factor is high, I still don't see these languages as a viable tool for serious Android developers. I'd love to see someone prove me wrong though!

It seems like Scala is the closest to getting there right now.

6/9/2010 1:59:26 AM

I'm not sure how other JVM language performs, but I really think Scala is the one that could use for a serious Android project.

Of course it has some problem (like Google Maps Android API is not usable without some workaround), but it works very well with the default Android SDK.

I personally use Scala to develop my Android application (Maidroid Reminder) which is already been download about 5000 times according to the statistic of Android Market.

It's not a "prominent" application of course, but it uses lots of feature of Android SDK, like ContentProvider/Broadcast Receiver/MediaPlayer.... etc, and it works very well and I felt much more fun than coding in Java.

And the best thing of using Scala to develop Android application is that the user don't need install any runtime like Android Scripting Environment needs!

Just release your APK file, and the user could install your application using Android Market or ADB.

If anyone is interested in how an Android application written in Scala looks like, you may browse the source code at GitHub.

Licensed under: CC-BY-SA with attribution
Not affiliated with: Stack Overflow