Questions tagged as 'android-ndk'

1
answer

How to get the Package Name of an Android application in a C library?

I'd like to know how I can get the Package Name from my Android APP via a library written in C . What I want to get is the following com/meu_app/mainframe/MainActivity or com.meu_app.mainframe.MainActivity of the class that is...
asked by 07.08.2016 / 04:36
0
answers

Android - How to properly loop 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 whole emulator is written in C ++ I just created a C ++ library in android studio and added it to my project, the problem is, I need to manipulate he would see activit...
asked by 19.09.2018 / 20:42
0
answers

Display array during debug with android NDK

In android, when debugging my program I can see the vector and its contents: Ihavetopassthisvectorfromandroid(java)toC++andI'musingNDK.publicnativevoidtesteVetor(double[]vetorDados);testeVetor(vetorDados);testVetorisafunctioninC++: Currentlywhe...
asked by 14.10.2017 / 21:13
1
answer

Socket response with problems 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 (SO link) , I get a null , which does not happen when I manually put json in C. The problem is in the...
asked by 20.08.2016 / 23:22
0
answers

How to compile a project with Android.mk via a script.sh?

I have a simple project with native code and I'm using the manual command to compile /workspace/android-ndk-r11c/ndk-build TARGET_PLATFORM=android-14 TARGET_ARCH_ABI=armeabi NDK_PROJECT_PATH=. . In my project I have Android.mk LOCAL_P...
asked by 20.06.2016 / 05:31
1
answer

Error compiling a static zlib library for Android

I have the Android.mk configuration file for the zlib for Android build , but it contains the build options, , and host , I just need to compile a static library, BUILD_STATIC_LIBRARY . I do not know what to keep or remove from Android...
asked by 27.06.2016 / 23:41
0
answers

Android - How to draw pixels using OpenGL ES 2.0

I have a CHIP8 emulator written in C ++, and I am making a port for android, the desktop version uses SDL and the pixels are drawn with SDL_Texture , however I do not have this feature within my reach, looking this source code I noticed...
asked by 03.01.2019 / 15:37
0
answers

C ++ Editor does not work in Android Studio

I have 2 android projects that use C ++, one of them uses 100% C ++ using NativeActivity and an emulator that uses JNI, the question is simply the android studio's C ++ editor no longer works as an example of the images below: p> Basica...
asked by 23.10.2018 / 14:07
0
answers

Android NDK - How to compile this code? (Beginner..)

A developer has published their code on GitHub for anyone who wants to create their server for SAMP Android (a developing project that allows them to run GTA Android online). Link to code: link I want to know which program to use and t...
asked by 25.07.2018 / 05:16
1
answer

C ++ Character buffer adding non-existent characters

Well, I have an application for android that uses OpenGL ES 3.1, I did the whole procedure to compile the shaders, I decided to put them in a separate folder in assets, to retrieve the content I'm using
asked by 04.05.2018 / 14:28