android , downloaded file image does not exist? -


i new in android , using android asynchronous http client library download image file server when trying download images status success image not downloaded in internal storage !!

here code

download.setonclicklistener(new view.onclicklistener() {         @override         public void onclick(view v) {              string url = getintent().getstringextra("url");              asynchttpclient client = new asynchttpclient();             client.get(url, new fileasynchttpresponsehandler(fullimageactivity.this) {                 @override                 public void onfailure(int statuscode, header[] headers, throwable throwable, file file) {                     toast.maketext(fullimageactivity.this, "error", toast.length_short).show();                  }                  @override                 public void onsuccess(int statuscode, header[] headers, file response) {                     toast.maketext(fullimageactivity.this, "done", toast.length_short).show();                    }             });         }     }); 

any please !?

i haven't used library, based on callbacks definitions , on documentation - file not automatically saved anywhere on device. response comes in byte[] response , responsibility save or use way want.


Comments

Popular posts from this blog

dns - How To Use Custom Nameserver On Free Cloudflare? -

python - Pygame screen.blit not working -

c# - Web API response xml language -