code: public static ImageLoader getLoader(Context context) {
          ImageLoader loader = (ImageLoader) context.getApplicationContext().getSystemService(IMAGE_LOADER_SERVICE);
          if (loader == null) {
              throw new IllegalStateException("ImageLoaderApplication not set as application class in" +
                      "AndroidManifest.xml");
          } else {
              return loader;
          }
      }
docs: Get the loader provided by this {@link Application}
  
  @param context the current context
  @return an {@link ImageLoader}