Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When I have some network request, your framework doesn't work. #4

Open
angelen10 opened this issue Mar 19, 2015 · 2 comments
Open

When I have some network request, your framework doesn't work. #4

angelen10 opened this issue Mar 19, 2015 · 2 comments

Comments

@angelen10
Copy link

No description provided.

@jacobtabak
Copy link
Owner

Please provide some more information and steps to reproduce.

On Wed, Mar 18, 2015, 8:04 PM 俨小良 [email protected] wrote:


Reply to this email directly or view it on GitHub
#4.

@angelen10
Copy link
Author

Picture 1 Picture 2
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,

StringRequest stringRequest = new StringRequest(
                Request.Method.POST,
                url,
                new Response.Listener<String>() {
                    @Override
                    public void onResponse(String s) {
                        // Fill response data to ListView or GridView.
                    }
                },
                new Response.ErrorListener() {
                    @Override
                    public void onErrorResponse(VolleyError volleyError) {
                    }
                });
        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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants