title: android universal image loader not caching or saving image
body: <p>I am using universal image loader to load images. The issue is that It does not save loaded images in cache Here is my code.</p>
  
  <pre><code>    Map&lt;String, String&gt; headers     = new HashMap&lt;String, String&gt;();    
      headers.put("key", Commons.CURRENT_ACTIVE_PROFILE.getKey()); 
      headers.put("secret", Commons.CURRENT_ACTIVE_PROFILE.getSecret());  
  
      ImageLoaderConfiguration config = new ImageLoaderConfiguration.Builder(mActivity)
      .imageDownloader(new CustomImageDownaloder(mActivity)).build(); 
  
      //imageLoader.init(ImageLoaderConfiguration.createDefault(mActivity)); 
  
      imageLoader.init(config);  
  
  
      imageLoader = ImageLoader.getInstance();
      displayImageOptions = new DisplayImageOptions.Builder()
      .extraForDownloader(headers)
      .showImageForEmptyUri(R.drawable.no_preview)
      .showImageOnLoading(R.drawable.no_preview) 
      .showImageOnFail(R.drawable.no_preview)
      .cacheInMemory(true) 
      .considerExifParams(true)
      .bitmapConfig(Bitmap.Config.RGB_565)
      .build();
  </code></pre>
  
  <p>The problem is when I use following line for ImageLoaderCinfiguration that creates a default settings It would work fine and saves the images in cache.</p>
  
  <pre><code>imageLoader.init(ImageLoaderConfiguration.createDefault(mActivity));
  </code></pre>
  
  <p>But I want to use custom settings for ImageLoaderConfiguration because I am using CustomImageDownloader to pass key/secret with URL. So i use following lines for config</p>
  
  <pre><code> ImageLoaderConfiguration config = new ImageLoaderConfiguration.Builder(mActivity)
  .imageDownloader(new CustomImageDownaloder(mActivity)).build();
  </code></pre>
  
  <p>But In this case it doest not save image and if I run the app without internet it does not load the images. Any help/suggestion please?</p>
  
  <p>Possible <a href="https://stackoverflow.com/questions/11440637/images-not-being-cached-locally-using-universal-image-loader-slow-image-load">duplicate</a> I have tried that but no use. </p>