LouisLeung / android-query

Automatically exported from code.google.com/p/android-query
0 stars 0 forks source link

aquery seems to not totally clear itself... until we kill app process #54

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Load a bunch of images in activity

 void recurs(int i,final int nbChapitre){
        if(i>=nbChapitre){
            return;
        }
        else{
             final int index = i;
            aq.ajax(linkPageImage, String.class, new AjaxCallback<String>() {
                    @Override
                    public void callback(String url, String html, AjaxStatus status) {
                        ...
                        String urlImage="my Links";
                        BitmapAjaxCallback m = new BitmapAjaxCallback(){
                             @Override
                            protected void callback(String url, ImageView iv,
                                    Bitmap bm, AjaxStatus status) {          
                                super.callback(url, iv, bm, status);
                                recurs(index+1, nbChapitre);
                            }
                        };                              
                                aq.id(imageViewTmp).image(urlImage,true, true, 0, 0,m);
                    }
            });
        }
    }

//clear all
@Override
    protected void onDestroy() {
        // TODO Auto-generated method stub
        BitmapAjaxCallback.clearCache();
        AQUtility.cleanCacheAsync(this,0,0);
        super.onDestroy();
    }

2. Sometimes a download blocked in the middle of my script (let say I had 30 
images to download, sometimes it will block after 9/10 images )
3. When I quit the activity, and restart the same thing, download is not 
started anymore, in order to work again, I kill manually the app

What is the expected output? 
all download worked
What do you see instead?
first time sometimes download freeze,
 2nd time download is totally freezed until I kill my app 

What version of the product are you using? On what operating system?
0.21.7

Please provide any additional information below.

thanks

Original issue reported on code.google.com by ichigo...@gmail.com on 5 Jun 2012 at 2:26

GoogleCodeExporter commented 8 years ago
Please try the latest beta for higher concurrent network limit.

Original comment by tinyeeliu@gmail.com on 31 Jul 2012 at 1:57