The answer is that any Volley function you extend or override must have
@Override
protected void deliverResponse(T response) {
// TODO Auto-generated method stub
mListener.onResponse(response);
}
function implemented. The Listener must be initialized in the constructor and have the onResponse method implemented.
Otherwise your network call will never return in the onResponse
section.
EDIT: and your extended Request class has to also implement deliverError, along with deliverResponse
private final Listener<T> mListener;
private ErrorListener mErrorListener;
@Override
public void deliverError(VolleyError error) {
mErrorListener.onErrorResponse(error);
}
with ErrorListener
initialized in your constructor