I am very new to android studio. The documentation I am reading is
ndk guides. Here in the section 'Using the native_activity.h interface' there it says
Create a jni/ directory in your project's root directory. This directory stores all of your native code. So I guess all native codes will be inside jni/. But when right click on the app/ directory there is no option to create a directory. I tried creating the folder through file manager but it doesn't show up in the project view.
I have ndk,cmake installed as per documentation and When creating project I check include c++ support. There is a folder named cpp/ inside app/ which have a c++ file native-lib.cpp. Which I think is a sample code. So tried creating a c++ code there. But when I include native_activity header it can't find the header file. I included the new cpp file in cmake. As I said I am very new to studio and the ndk guide is very confusing . Am I missing some steps? Is creating jni/ directory is necessary or i can include my c++ code in app/cpp/? Why it can't find native_activity.h?