Questions tagged [Java Native Interface] (27)

1
answer

How to do to make opengl using jni in android?

I want to try to make a game for android in c++. And this seems possible. Would like to sdl2 to do, but the version that compiles for android 2.0.10 and it it buggy, and buggy 2.0.9. With them such problems that the jamb on a jamb. As they are generally testing their software is not clear. I decided to do it in android stud...
Shanel_Terry asked April 4th 20 at 00:25
0
answer

What's available from c++ code in the Android application?

Good day! The situation is - there's an Android app with a c++ library (.so file). It is necessary to use this library in another prilojenii without changing the c++code. If you create prilojenie describing all the functions to access the c++ library in java code and applicationId in gradle and AndroidManifest in the packag...
Eudora_Huel75 asked April 1st 20 at 15:43
1
answer

How to run the native debugger in Android Studio?

Good day! There's an Android app that I wrote that connects to a jni library written by me and I don't have its source code. There an error occurs, and to identify, as I understand it is necessary to use gdb. Only I've never used gdb and I have some questions. I read this post here - https://habr.com/ru/post/151192/ It says...
theo.Moscis asked March 31st 20 at 21:31
0
answer

Install NDK Eclipse?

Not running NDK in Eclipse. From the beginning put the latest version of: r-19c. In Eclipse, added, created an Android project, all that is needed. But in C++ files, he swears on every line. The Internet was written that it is necessary to add h files from the folder platforms/android-version/architecture/usr/include , but ...
vito.Hegmann22 asked March 21st 20 at 12:38
0
answer

Why not encrypted text?

Trying to insert an encryption module written in C/C++ in an android application. Like inserted, everything works, but the app doesn't work. native-lib.cpp#include <jni.h> #include <string> #include "gost34-12-15.h" #include "gost34-13-15.h" #include "main.cpp" #include <android/log.h> std::string jstring...
lorine asked March 16th 20 at 12:26
0
answer

Why Android Studio does not see the JNI functions?

Android Studio does not see the JNI functions. error:"Cannot resolve the corresponding JNI function..."build.gradle:apply plugin: 'com.android.application' android { compileSdkVersion 28 defaultConfig { applicationId "com.example.m.f" minSdkVersion 15 targetSdkVersion 28 versionCode 1 versionName "1.0" testInstrumen...
Jaclyn_Johns asked March 13th 20 at 13:22
2
answers

Run third-party applications

Need Java program to run a third-party application WITHOUT waiting for closing of the running application. For example: launched jar'nick opened Notepad (windows environment) and was completed Agnico
Alivia.Schuppe asked October 3rd 19 at 04:40
1
answer

How to profile a third-party shared library that is used via JNI?

Subj. There is a Java application that calls, via JNI a third-party library: Java <-> lib3rdJni.so <-> lib3rd.so How can I profile the memory usage of the library lib3rd.so?
Trent.Kli asked October 2nd 19 at 16:49
2
answers

How to call a java method(not static) from C++(Android)?

Trying to figure out how to call java from c++, but nothing is working and not collected. Just need to call a void method, not static. Try pressing Konopka in C++ to run the java method for in-app purchares. Prompt on the Internet may have some working examples.
enrique9 asked September 26th 19 at 13:36
2
answers

Java native interface, where is the library?

The task was to connect in C++ JNI to start the virtual machine, but unfortunately the library to find it did not work, it where to get?
Anita.Beer19 asked September 15th 19 at 23:39