getenv("HOME") returns null in native code for android

207 Views Asked by At

I am calling getenv("HOME") from a C++ code which is called from an Android app. for IOS getenv("HOME") returns the corresponding directory but for Android it is null. How can I get the directory where I can read and write files in C++ code for Android?

0

There are 0 best solutions below