Android NDK
The Android NDK is a toolset that lets you implement parts of your app in native code, using languages such as C and C++. For certain types of apps, this can help you reuse code libraries written in those languages.
class MyActivity : Activity() {
/**
* Native method implemented in C/C++
*/
external fun computeFoo()
}
/**
* Native method implemented in C/C++
*/
external fun computeFoo()
}
Latest news
Optimize your native code
Simpleperf
Updated January 3, 2024
Android Studio includes a graphical front end to Simpleperf, documented in Inspect CPU activity with CPU Profiler. Most users will prefer to use that instead of using Simpleperf directly. If you prefer to use the command line, Simpleperf is a