getenv("TMPDIR")
returns NULL
. Any suggestions on what is temp folder/where to create one?
The temporary directory is /data/local/tmp .
On your keyboard, press the Windows + R keys at the same time. In the Open field, type %temp%, then press ENTER. The temp folder will open. You can also access it on your Windows 10 PC via the shortcut button below, then choose Temporary files.
For the windows client, temporary files are stored in the user's temporary folder, e.g. C:\Users\<username>\AppData\Local\Temp. For the web clients it is handled by the browser.
Read More: Which Apps Slow Down Your Smartphone the Most? Temporary files are exactly what they seem: short-term files that run in the background. For example, when you hit “back” in an Internet browser, a temporary file remembers which page you were at before. Hitting “undo” on your keyboard also uses temporary files.
As far as I know there is no global /tmp in Android, you should use the cache dir.
Use getCacheDir()
to get the "tmp" dir.
http://developer.android.com/guide/topics/data/data-storage.html#filesInternal and http://developer.android.com/reference/android/content/Context.html#getCacheDir%28%29
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With