Java tutorial
//package com.java2s; import java.io.File; import android.content.Context; public class Main { private static final String PICASSO_CACHE = "picasso-cache"; public static File createDefaultCacheDir(Context context) { File cache = new File(context.getApplicationContext().getCacheDir(), PICASSO_CACHE); if (!cache.exists()) { cache.mkdirs(); } return cache; } }