SyntaxFix
Write A Post
Hire A Developer
Questions
You can use the cache dir using context.getCacheDir().
File temp=File.createTempFile("prefix","suffix",context.getCacheDir());