android - Refreshing RequestQueue -


i have requestqueue i'm adding few urls string them. able refresh them on demand. used approach adding new (the same previous) requests queue, see isn't option. also, there possibility data network? never cache?

stringrequest stringrequest = new stringrequest(channel.getread_last_entry_url(),                 new response.listener<string>() {                     @override                     public void onresponse(string response) {                         channel.parse_json(response);                     }                 },                 new response.errorlistener() {                     @override                     public void onerrorresponse(volleyerror error) {                         toast.maketext(getactivity(), error.getmessage(), toast.length_long).show();                     }                 });         requestqueue requestqueue = volley.newrequestqueue(getactivity());         requestqueue.add(stringrequest); 


Comments

Popular posts from this blog

c# SetCompatibleTextRenderingDefault must be called before the first -

C#.NET Oracle.ManagedDataAccess ConfigSchema.xsd -

c++ - Fill runtime data at compile time with templates -