<p dir="auto"><strong>Glide Version</strong>: 3.7.0</p>

<p dir="auto"><strong>Integration libraries</strong>: glideOkHttpVersion = '1.4.0'</p>

<p dir="auto"><strong>Device/Android Version</strong>: Nexus 5x Android 6.0.1</p>
<p dir="auto">I'm trying to save cached images like:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="builder.setDiskCache(() -&gt; {
            final File cacheLocation = new File(Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_PICTURES), ALBUM);
            if (!cacheLocation.mkdirs()) {
                Timber.d(&quot;Directory not created&quot;);
            }
            return DiskLruCacheWrapper.get(cacheLocation, CACHE_SIZE);
        });"><pre class="notranslate"><code class="notranslate">builder.setDiskCache(() -&gt; {
            final File cacheLocation = new File(Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_PICTURES), ALBUM);
            if (!cacheLocation.mkdirs()) {
                Timber.d("Directory not created");
            }
            return DiskLruCacheWrapper.get(cacheLocation, CACHE_SIZE);
        });
</code></pre></div>
<p dir="auto">and the question is, if I could set the name policy for cached images, because now they are saved as <code class="notranslate">xxxxxxx.o</code> and I would like to see all those cached images in Gallery App, so that means that they should have an <code class="notranslate">jpg</code> of <code class="notranslate">png</code> extension</p>
<p dir="auto">java.lang.IllegalStateException: Too many receivers, total of 1000, registered for pid: 21355, callerPackage: com.ttd.tokl<br>
at android.os.Parcel.createException(Parcel.java:1971)<br>
at android.os.Parcel.readException(Parcel.java:1931)<br>
at android.os.Parcel.readException(Parcel.java:1881)<br>
at android.app.IActivityManager$Stub$Proxy.registerReceiver(IActivityManager.java:3676)<br>
at android.app.ContextImpl.registerReceiverInternal(ContextImpl.java:1507)<br>
at android.app.ContextImpl.registerReceiver(ContextImpl.java:1468)<br>
at android.app.ContextImpl.registerReceiver(ContextImpl.java:1456)<br>
at android.content.ContextWrapper.registerReceiver(ContextWrapper.java:623)<br>
at com.bumptech.glide.c.e.a(SourceFile:55)<br>
at com.bumptech.glide.c.e.i(SourceFile:101)<br>
at com.bumptech.glide.c.a.a(SourceFile:37)<br>
at com.bumptech.glide.i.(SourceFile:116)<br>
at com.bumptech.glide.i.(SourceFile:78)<br>
at com.bbk.appstore.imageloader.e.(SourceFile:38)<br>
at com.bumptech.glide.c.a(SourceFile:19)<br>
at com.bumptech.glide.c.l.a(SourceFile:441)<br>
at com.bumptech.glide.c.l.a(SourceFile:134)<br>
at com.bumptech.glide.c.l.a(SourceFile:116)<br>
at com.bumptech.glide.e.b(SourceFile:707)</p>