Code example for LruCache

Methods: remove

0
 
    public static ApplicationInfo getCachedApplicationInfo(final String packageName) {
        if (null == packageName) return null;
        return sCache.get(packageName);
    } 
    public static void removeApplicationInfoCache(final String packageName) {
        sCache.remove(packageName);
    } 
 
    public interface OnTargetApplicationKnownListener { 
        public void onTargetApplicationKnown(final ApplicationInfo info);
    } 
 
    private Context mContext;
    private final OnTargetApplicationKnownListener mListener;
 
    public TargetApplicationGetter(final Context context,
            final OnTargetApplicationKnownListener listener) {
        mContext = context;
        mListener = listener;
    }