app/src/main/java/com/yahala/ImageLoader/ImageLoaderInitializer.java
/**
     * There are different settings that you can use to customize
     * the usage of the image loader for your application.
     */
There are different settings that you can use to customize
the usage of the image loader for your application.
There are different settings that you can use to customize the usage of the image loader for your application .
@SuppressWarnings("unused")
    private void verboseImageManagerSettings() {
        LoaderSettings.SettingsBuilder settingsBuilder = new LoaderSettings.SettingsBuilder();
        settingsBuilder.withDisconnectOnEveryCall(true);
        settingsBuilder.withCacheManager(new LruBitmapCache(ApplicationLoader.applicationContext));
        settingsBuilder.withReadTimeout(30000);
        settingsBuilder.withConnectionTimeout(30000);
        settingsBuilder.withAsyncTasks(false);
        settingsBuilder.withEnableQueryInHashGeneration(false);
        LoaderSettings loaderSettings = settingsBuilder.build(ApplicationLoader.applicationContext);
        imageManager = new ImageManager(ApplicationLoader.applicationContext, loaderSettings);
    }
@ SuppressWarnings ( "unused" ) private void verboseImageManagerSettings ( ) { LoaderSettings . SettingsBuilder settingsBuilder = new LoaderSettings . SettingsBuilder ( ) ; settingsBuilder . withDisconnectOnEveryCall ( true ) ; settingsBuilder . withCacheManager ( new LruBitmapCache ( ApplicationLoader . applicationContext ) ) ; settingsBuilder . withReadTimeout ( 30000 ) ; settingsBuilder . withConnectionTimeout ( 30000 ) ; settingsBuilder . withAsyncTasks ( false ) ; settingsBuilder . withEnableQueryInHashGeneration ( false ) ; LoaderSettings loaderSettings = settingsBuilder . build ( ApplicationLoader . applicationContext ) ; imageManager = new ImageManager ( ApplicationLoader . applicationContext , loaderSettings ) ; }
There are different settings that you can use to customize
 the usage of the image loader for your application.
There are different settings that you can use to customize the usage of the image loader for your application .
//You can force the urlConnection to disconnect after every call. //We have different types of cache, check cache package for more info //You can set a specific read timeout //You can set a specific connection timeout //You can disable the multi-threading ability to download image //You can set a specific directory for caching files on the sdcard //settingsBuilder.withCacheDir(new File("/something")); //Setting this to false means that file cache will use the url without the query part //for the generation of the hashname