Not really an immediate source code question per se….but Im looking into doing some casual Android Programming, nothing heavy.
But it seems to use alot of XML and Java……what I wonder though is why is it that android is written mostly in C and XML (along with C++ and Java) with it being closely related to the Linux OS……but why is the “main” language for programming in android Java?
Just out of curiosity of course.
The “main” language, as you called it, is Java. You can use C/C++ via the NDK, but you won’t need it unless you are doing some special stuff. If you wonder when you would need to use C/C++, take a look at the official documentation: