Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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

like image 770
Umren Avatar asked Oct 06 '11 09:10

Umren


People also ask

Which other language can be used for native app Android development?

1. What language are Android apps written in? The majority of Android apps are written in Java and Kotlin. In some cases, programming languages like C, C++, and Basic are also used.

Can C++ be used for Android app development?

You can add C and C++ code to your Android project by placing the code into a cpp directory in your project module. When you build your project, this code is compiled into a native library that Gradle can package with your app.

Which language is best for Android app development?

If you plan on creating an Android app, Java could be the way to go. According to a recent survey, JavaScript is the most popular language among developers, with around 69.7 percent using it. HTML/CSS is the second most popular language, with 62.4 percent of respondents saying they code with it.

Is Java only used for Android development?

Android and most of its apps are developed using Java. It is the most popular and widely-used programming language among developers for developing Android applications. It is also used for numerical computing, desktop computing, and games.


1 Answers

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.

like image 135
Brian Hsu Avatar answered Sep 23 '22 18:09

Brian Hsu