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. 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.
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.
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.
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.
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 love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With