• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps file access

alex42

Lurker
Jul 25, 2010
3
0
I'm trying to write an app which is strongly based on somebody else's code (which is in C). This code needs to open two files in order to run. I've put these files in the jni folder, with the native code, but I can't get the code to open them successfully. I suspect that the problem is that I have been unsuccessful at guessing how to write even such a simple relative file path for Android, but I haven't been able to find anything at all about file paths in any resource.
 

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones