Code example for LruCache

Methods: remove

    public static ApplicationInfo getCachedApplicationInfo(final String packageName) {
        if (null == packageName) return null;
        return sCache.get(packageName);
    public static void removeApplicationInfoCache(final String 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;
Connect your IDE to all the code out there  Get Codota for Java