Can Android applications only be programmed in Java?

No, that is not the case. The Native Development Kit (NDK) in C/C++ may be used to create Android applications. The NDK is a suite of tools that lets us use native code languages like C and C++ to build sections of our programme. CPU-intensive applications like gaming engines, signal processing, and physics simulation are typical NDK use cases.