开发者

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

开发者 https://www.devze.com 2023-04-11 07:37 出处:网络
Is there a languages other then Java to develop native apps in android without s开发者_C百科cript layer/AIR and others 3rd party abstractions.

Is there a languages other then Java to develop native apps in android without s开发者_C百科cript layer/AIR and others 3rd party abstractions.

Mostly im interested in Clojure,JRuby, Scala


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.


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

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号