Code example for LruCache

Methods: evictAll

0
        } 
    } 
     
    public void clearMemCache() { 
        if (mLruCache != null) {
            mLruCache.evictAll();
        } 
        System.gc();
    } 
 
    public static final class RetainFragment extends Fragment {
 
        private Object mObject;
 
        public RetainFragment() { 
        } 
        @Override 
        public void onCreate(final Bundle savedInstanceState) {
            super.onCreate(savedInstanceState);
            // Make sure this Fragment is retained over a configuration change 
            setRetainInstance(true);