What languages are mature to develop native apps in Android [except Java]

蹲街弑〆低调 提交于 2019-12-07 06:46:02

问题


Is there a languages other then Java to develop native apps in android without script layer/AIR and others 3rd party abstractions.

Mostly im interested in Clojure,JRuby, Scala


回答1:


Since Scala is compiled to native JVM bytecode, it could be use to develop native Android apps.

The biggest problem is that using 3rd party library is not that easy in Android development, and you need use proguard to reduce the size of your program, sometimes this will cause problem.

But it is still feasible to develop an Android app using Scala, for example, I've wrote an little android app (page in Chinese, but there is screenshots) using Scala. It's not a complex app, but should demonstrate what Scala could do in Android app development.

Here is also an SBT plugins that help you build your Scala/Android program.

Finally, if you want develop Android using Scala, I will suggest using Scala 2.8.x. I found my program crashes during adb install when I extends a collection class using Scala 2.9.




回答2:


If you use Mirah, you can get code that is exactly as fast and small as writing Java, but you get niceties like type inference, closures, and macros. The tooling is still pretty immature compared to Scala, but if you want to minimize overhead above all else you should give it a look: http://mirah.org and https://github.com/mirah/pindah



来源:https://stackoverflow.com/questions/7672484/what-languages-are-mature-to-develop-native-apps-in-android-except-java

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!