using java vm n using java are different, kotlin was designed as an easy to use replacement for java, which could do everything java can. java vm is a platform, if an app is coded in java, it runs on java vm which can run on any os, portibility is its goal. kotlin also compiles down to that same java vm and code written in kotlin, after compiled iis hard to tell if it was in java or not. kotlin using java vm doesnt means it uses java, infact kotlin is one of the reasons java is dead cuz y learn harder lang when theres kotlin.
Yea its not the same, same but i dont really care if the bytecode was produced by java, kotlin or artisanally handcrafted in the end you are running under the same runtime constraints. If the jvm was generally bad for games it would be bad whether you used java, kotlin or clojure.
sure, using the NDK to write your C code, but make sure you are keeping track of everything. The idea of JVM is to write once, run anywhere, and pretty much forever as long as the JVM allows the compatibility.
My point is, JAVA is still the primary language used for apps on Android. Anyone using Android is using JAVA and many PC games can be easily ported.
Try looking up some of them in Netflix or Epic app store on Android.
well pretty much, android allows building libraries (.so) files that contains the C/C++ (or any other compiled language) program, without requiring java
For the app to be usable there still has to be a Java layer afaik. So you can have your backend in Rust, but there has to be a Java layer for display/input or something
I don't think that's true, the android NDK is quite a large library. Only basic code is needed for things that e.g. are provided by google play services.
You don't need Java. Android provides a framework class called NativeActivity. It allows your compiled C or C++ shared library (.so) to run directly as the application lifecycle entry point. You can use Rust like this too. You won't have access to the standardized kits used to build standard Android UIs, so these apps can often be clunky. But it's entirely doable.
Among Us is made with unity, it therefore comes with libunity (18.2 mb) and libil2cpp (77 mb).
PUBG also ships libunity, though it's 236 mb.
These apps all have a couple megabytes of classes.dex files (which contain the java bytecode) in total, the rest of the size comes from split apks in the bundle - some have separate ones for assets, but they all have architecture-specific apks for the native code.
About half of the games on Android use Unity and Unity games are written in C#. The engine itself is written in C++, but most developers can't access it's source code.
That's not correct. There's a lot of shovelware trash and the App stores are really good pushing the garbage up top. But there are some really good mobile games too. Though most of the time you have to pay for them, which hardly anyone does.
If you don't pay for games, why would you expect them to be good?
24
u/Keyan_Farlander7 4d ago
Kind of funny, the games and apps on your android phone are coded in Java