NDK, unable to open files from sdcard / external storage

  android, android-ndk, android-sdcard, c++

I am trying to open a file from the external storage on Android via

std::string filename= "/storage/emulated/0/mono0.ogg";
std::ifstream file;
file.open(filename);
file.is_open() //!! is false

Read/Write storage permissions are granted => i can read the file in my Java code.
Can anyone help me out with this?

Source: Windows Questions C++

LEAVE A COMMENT