Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Android / Get ANativeActivity pointer from C++

Author
Message
mattborum
9
Years of Service
User Offline
Joined: 25th Jul 2014
Location:
Posted: 25th Jul 2014 12:20
I need to call Java methods from my native C++ code. I've never done this before but it seems that setting up a JVM is the way to go.

Looking at Core.cpp I see this is how AppGameKit does it. How do I access the JNIEnv pointer that AppGameKit sets up from my own code? My code is in it's own namespace if that makes a difference?

Login to post a reply

Server time is: 2024-04-19 06:10:56
Your offset time is: 2024-04-19 06:10:56