Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android: get external storage directory dynamically through JNI #543

Open
JeroMiya opened this issue May 18, 2017 · 0 comments
Open

Android: get external storage directory dynamically through JNI #543

JeroMiya opened this issue May 18, 2017 · 0 comments

Comments

@JeroMiya
Copy link
Contributor

Currently on android we have "/sdcard/osvr/osvr_server_config.json" as a hard-coded search path for the server config. We should be calling Environment.getExternalStorageDirectory() dynamically at runtime via JNI to get the true path reliably on different android distributions. This requires a JNI_OnLoad function definition for the Android build to get access to the JNI VM in order to make the appropriate calls.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant