views:

1006

answers:

1

Has anyone had success developing a substantial Android app in Scala? Is it a viable option yet? Are there any mature development environments? Given the state of the Scala Eclipse plug-in, it looks as if there is no good IDE support at all other than possibly IntelliJ Ultimate.

A few people have posted tutorials describing how to fudge Eclipse ADT to sort-of support Scala, and how to to slim the Scala libraries using Proguard, but beyond that there has been worryingly little discussion about this topic.

+13  A: 

I'm programming my Android application project in Scala.

If you are interested, you may take a look at this:

Ya, it is a Chinese website, but you may just take a look at screenshots to get some idea about that Scala can do everything with Android SDK just like Java.

The source code of these two android application is hosted on GitHub: http://github.com/brianhsu/Maidroid

Currently I don't use any IDE, because Vim / SBT is far more convenient and lightweight then any IDE I ever used.

And if you are using SBT to build your Scala Android application, you don't need worry about those progruard stuff, just install the sbt android-plugin and setup your project.

You may read this blog entry to learn how to build your Android application with SBT.

BTW, I use my own handcraft sbt plugin called sbt-android in my project, instead of android-plugin metioned in that blog post.

Brian Hsu
Hi Brian, and thanks for your answer and also for publishing the source code. SBT with any of those plugins looks like a nice approach. Have you had any issues with this approach whatsoever, or has it been a smooth ride all the way? Seeing that you've written Android apps in Java too, how would you compare the experiences?
ehnmark
whats the speed of scala based android applications ? Scala generates lot of class files and won't that slow down android app ?
Ajay