Most voted "android-ndk" questions
The Android Native Development Kit (NDK) is a complementary tool to the Android SDK that allows you to create performance-critical parts of applications in native code or port existing libraries in C / C++ for Android. It provides headers and libraries that allow you to create activities, manipulate user input, use hardware sensors, access application resources and more when programming in C / C ++.
Learn more…13 questions
Sort by count of
-
35
votes2
answers6387
viewsWhat is Android NDK?
From what I understand Android NDK is focused on development with c or c++, despite supporting Java through JNI (Java Native Interface), but I would like to understand some things: When we compile…
-
1
votes0
answers66
viewsHow to compile a project with Android.Mk through a script.sh?
I have a simple project with native code and am using manual command to compile /workspace/android-ndk-r11c/ndk-build TARGET_PLATFORM=android-14 TARGET_ARCH_ABI=armeabi NDK_PROJECT_PATH=.. In my…
-
1
votes1
answer128
viewsTroublesome socket response on Android NDK
I’m trying to implement this library, Parson, in C, but when I try to manipulate the data obtained via connection socket(ONLY link), I get a null, what doesn’t happen when I manually put the json in…
-
1
votes1
answer679
viewsHow to get the Package Name from an Android app in a C library?
I would like to know how I can get the Package Name of my Android APP through a library written in C. What I want to get is this com/meu_app/mainframe/MainActivity or…
-
1
votes0
answers18
viewsDisplay array during debug with android NDK
On android, when debugging my program I can see the vector and content of it: I have to pass this vector from android (java) to C++ and I’m using NDK. public native void testeVetor(double[]…
-
1
votes0
answers265
viewsAndroid - How to Create a Loop Properly in an Activity and Pause It and Summarize It
I have a project of a CHIP-8 emulator that I’m trying to port to android, the entire emulator is written in C++ so I created a C++ library in android studio and added it to my project, the problem…
-
1
votes1
answer39
viewsMethod returns different data as the architecture of android
I created a library for Android and it has a method that returns the milliseconds of the epoch date. I tested on 2 different architectures to validate if the returns were correct. armeabi-v7a:…
-
0
votes1
answer68
viewsError when compiling a zlib Static library for Android
I have the Android.Mk configuration file for the compilation of zlib for Android, but it contains the compilation options, Shared, Static and host, I only need to compile a Static library,…
-
0
votes0
answers43
viewsHow to get Datetime from the internet?
How can I do to get the current date from the internet, and convert the result to char *data_atual? Example of the intended websites: nist.time.gov and/or time.windows.com. I would like two…
-
0
votes0
answers47
viewsC library with auto checksum
I’m creating a library/library for Android in C, and I’d like to know how to get it to display its own checksum, so, should you suffer any "alteration" once compiled, the checksum change.…
-
0
votes0
answers93
viewsIs it possible to use the SDK and NDK with Android Studio?
Good night! I have an app I made using the SDK. However, there was a need to use NDK in order to be able to use some ready-made functions already existing in C/C++. How does it work in this case? I…
-
0
votes1
answer86
viewsC++ Character buffer adding no characters
Well, I have an application for android that uses Opengl ES 3.1, I did all the procedure to compile the shaders, I decided to put them in a separate folder in Assets, to recover the content I am…
-
-1
votes1
answer110
viewsFile location txt Android ndk / C++
I made a c++ code to create a file: I’ve already given the manifest permission to read and record: My question is:???…