You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Look at the picture above, the function I want is : There are four different fragments in an Activity, and each fragment has its own network request. For example, in one of my fragment,
StringRequeststringRequest = newStringRequest(
Request.Method.POST,
url,
newResponse.Listener<String>() {
@OverridepublicvoidonResponse(Strings) {
// Fill response data to ListView or GridView.
}
},
newResponse.ErrorListener() {
@OverridepublicvoidonErrorResponse(VolleyErrorvolleyError) {
}
});
App.get().getRequestQueue().add(stringRequest);
But when I switch to other fragment and switch back, it can not retain the state.
Sorry for my poor English.
No description provided.
The text was updated successfully, but these errors were encountered: