Part 10/10

While most Android apps are written in pure Java, Android’s Native Development Kit (NDK) enables us to access code written in C/C++ via Java Native Interface (JNI). This is often done in the name of performance, or to take advantage of existing legacy code-base.
In this tutorial, we will see what NDK is, why we would use it, and build a simple application to see how to get started.

Get the code and watch the whole series at

Nguồn:https://u-os.org/

Author

16 Comments

  1. Abanoub Edwar Reply

    Thanks man I really learned something here
    you are a good instructor

  2. Adding C++ to an Android Java app was tossed at me this morning.  I know both, but have never mixed them together.  This video was super helpful.  Thank you!

  3. Sebastian Cheung Reply

    Why is compling error: ANDROID_LOG_DEBUG cannnot be resolved?

  4. Karthik Balakrishnan Reply

    Could you please update the github repo with the C++ source? Excellent tutorials!

  5. Chris Coleman Reply

    excellent is the source code available for download anywhere?

  6. Very good tutorial! What would be useful is to show the horrors of UnsatisfiedLinkErrors and how to troubleshoot/fix them.

Write A Comment