Added native JNI code for accessing external storage