public static void statistics() { if (mCache != null) { Log.d( TAG, "request count:" + HttpCache.getRequestCount(mCache) + ",network count:" + HttpCache.getNetworkCount(mCache) + ",hit count:" + HttpCache.getHitCount(mCache)); } }
public static void statistics(Context context) { if (mCache != null) { Toast.makeText( context, "request count:" + HttpCache.getRequestCount(mCache) + ",network count:" + HttpCache.getNetworkCount(mCache) + ",hit count:" + HttpCache.getHitCount(mCache), Toast.LENGTH_SHORT) .show(); } }