I use this code to load an image from web :

     public Bitmap getRemoteImage(final URL aURL) {
          try {
               final URLConnection conn = aURL.openConnection();
               conn.connect();
               final BufferedInputStream bis = new BufferedInputStream
(conn.getInputStream());
               final Bitmap bm = BitmapFactory.decodeStream(bis);
               bis.close();
               return bm;
          } catch (IOException e) {
               Log.d("DEBUGTAG", "Oh noooz an error...");
          }
          return null;
     }

A small jpg file was taking on average 6s to load when I could see it
would come up in 1s from my Android browser even after all caches
deleted.

Is there some proxy setting etc. I am missing which is causing this
request to be slow?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to