Back to project page Volley-Ball.
The source code is released under:
MIT License
If you think the Android project Volley-Ball listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.siu.android.volleyball.samples.volley.request; /*from www . ja v a 2 s . co m*/ import com.android.volley.Response; import com.siu.android.volleyball.request.LocalRequest; import com.siu.android.volleyball.response.ResponseListener; import com.siu.android.volleyball.response.SingleResponseListener; import com.siu.android.volleyball.samples.util.ScenarioUtils; /** * Sample local request * The request here returns a String object result of the async operation, but you can also use the Void type */ public class SampleLocalRequest extends LocalRequest<String> { public SampleLocalRequest(SingleResponseListener<String> responseListener) { super(responseListener); } @Override public String performLocal() { // perform your task outside of UI thread here ScenarioUtils.waitSeveralSeconds(2); // you can return some result or null return "result"; } }