I'm trying to pass the path to my sd card as a jstring to my C++ code. I want to create a new file in that directory in native code, which requires me to append a filename string to the path string. This is the path string I'm trying to pass:
String path = Environment.getExternalStorageDirectory().getAbsolutePath();
What's the best way to work with jstrings in C++? The fopen() method requires a char*.
Thanks :)