Home »

Can I write code for Android using C/C++?

Question ListCategory: AndroidCan I write code for Android using C/C++?
jamessmith05 author asked 2 years ago
1 Answers
milleranthony7 author answered 1 year ago

Yes, but need to use NDK
Android applications are written using the Java programming language. Android includes

a set of core libraries that provides most of the functionality available in the core libraries

of the Java programming language.

Every Android application runs in its own process, with its own instance of the Dalvik

virtual machine. Dalvik has been written so that a device can run multiple VMs efficiently.

The Dalvik VM executes files in the Dalvik Executable (.dex) format which is optimized for

minimal memory footprint. The VM is register-based, and runs classes compiled by a Java

language compiler that have been transformed into the .dex format by the included ―dx‖

tool.

Android only supports applications written using the Java programming language at this

time.

Please login or Register to Submit Answer