UNIX/Android low-level API: need to get "Documents" path -


i need "documents" path c code working under android. analogs different oss are:

on windows:

shgetknownfolderidlist(folderid_documents, ...)  

returns path "my documents" folder.

on iphone:

nsarray *paths = nssearchpathfordirectoriesindomains(nsdocumentdirectory, nsuserdomainmask, yes); nsstring *documentsdirectory = [paths objectatindex:0]; 

one solution call android high-level function through jni (which function, way?). there native function?

there no standard "documents" path in android.

you can see standard public directories in directory_* constants defined on the environment class. afaik, there no way location of within ndk, other pass in java -- directory in java getexternalstoragepublicdirectory() method on environment. , none of them "documents" -- directory_downloads perhaps closest match.


Comments