问题
where is located the temp folder in the android phones???
回答1:
Reading this post from the android developers google group leads me to believe that there is not 1 global temp directory, and each application is expected to maintain their own temporary files.
回答2:
The temporary directory is /data/local/tmp.
I've seen some comments that claim you need to be rooted to access it but I'm not sure that's true. Whilst it is true that you need root to freely access /data, this is not required for /data/local/tmp.
I have verified this on Android 5.1.1.
回答3:
I believe what you're looking for is getCacheDir()!
来源:https://stackoverflow.com/questions/2364740/where-is-the-temp-folder-in-android-device