title: How to load quickly the image from the url in the ImageView of the normal android view(not list view)?
body: <p>My internet connection is very fast. Despite that my image loads very slow in the app. Here is the code i have been using. As suggested I have been using async method to perform certain task seperately.. </p>
  
  <pre><code>public class ItemPage extends Activity{
  ImageView image;
  String url;
  @Override
      protected void onCreate(Bundle savedInstanceState) {
  image = (ImageView) findViewById(R.id.img);
  //getting url from the parent activity
  Intent intent = getIntent();
           Bundle extras = intent.getExtras();
              if(extras != null) url = extras.getString("bigurl");
  //async call
             new DownloadFilesTask().execute(); 
  }
  
   private class DownloadFilesTask extends AsyncTask&lt;Void, Void, Void&gt; { //working part
                       Drawable drawable;
  
                       @Override
                       protected Void doInBackground(Void... params) {
                       try {
                          drawable =drawableFromUrl(url);
  
                      } catch (IOException e) {
                          // TODO Auto-generated catch block
                          e.printStackTrace();
                      }
                        return null;
                       }
                       protected void onPostExecute(Void result) {
                           image.setImageDrawable(drawable);
                      }          
                  } 
                public static Drawable drawableFromUrl(String url) throws IOException {
                      Bitmap x;
  
                      HttpURLConnection connection = (HttpURLConnection) new URL(url).openConnection();
                      connection.connect();
                      InputStream input = connection.getInputStream();
  
                      x = BitmapFactory.decodeStream(input);
                      return new BitmapDrawable(x);
                  }
  }
  </code></pre>
  
  <p>Please help me. Is there any way to load the image faster from the url? Thanks in advance for your time.</p>