Java tutorial
//package com.java2s; import java.io.File; import com.google.common.base.Strings; import android.content.Context; public class Main { public static File getTempStorageDirectory(Context context, String additionalStorageFolder) { String storageSubDir = Strings.nullToEmpty(additionalStorageFolder); return new File(context.getCacheDir(), storageSubDir); } }