As I debugged, I found that the GetCacheDir return /data/data/yourapp/cache/
But as I store files, I found nothing in that path(with shell),
but in /sdcard/Android/data/yourapp/cache/ I found the cache file?
who can tell me why?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
That sounds right for getCacheDir.
That’s what you’d get from getExternalCacheDir.
Are you sure you’re using the right API call? Did you check the return values of your File operations (are they all successful)? You could try some File functions to check that things are working right. (createNewFile, exists, getAbsolutePath)