Folder For Temporary Files Creation In Android, Why Does /data/local/tmp Doesn't Work For Me?
I am trying to create a temporary file in /data/local/tmp directory. The path is correct and I have added permission WRITE_EXTERNAL_PERMISSION also. But still I get an error from n
Solution 1:
The second parameter passed to fopen() is incorrect. That parameter should be an opening mode, not a directory path. See the man page of fopen.
Solution 2:
You can't access the /data folder unless your phone is rooted.
I'm not sure about the NDK, but there's a method in the SDK to get the cache directory
http://developer.android.com/reference/android/content/Context.html#getCacheDir%28%29
There's probably the same thing in the NDK.
Post a Comment for "Folder For Temporary Files Creation In Android, Why Does /data/local/tmp Doesn't Work For Me?"