Skip to content

Instantly share code, notes, and snippets.

View ishmaelmakitla's full-sized avatar

Ishmael Makitla ishmaelmakitla

View GitHub Profile
@ishmaelmakitla
ishmaelmakitla / FileDownloadRequest.java
Last active August 29, 2015 14:21
This Gist shows how the Volley Request<T> class can be extended to support file download. The response listener will receive a File through the callback method onResponse(File downloadedFile). The file will already be on the device at this point.
package za.org.pta.gdg.gists;
import java.io.File;
import java.io.FileOutputStream;
import java.util.Date;
import android.content.Context;
import android.os.Environment;
import android.util.Log;