0

I've a problem with Universal Image Loader (which is very fine), I just want to display a local drawable from local. So I put this URL into my String array:

public static final String[] IMAGES = new String[]{ "drawable://" + R.drawable.app_icon }

but it doesn't work and I've a null pointer exception..

So how display local drawable?

Jason Aller
  • 3,541
  • 28
  • 38
  • 38
eento
  • 761
  • 4
  • 20
  • 53
  • http://stackoverflow.com/questions/14098993/how-to-use-universal-image-loader-for-loading-resources-locally – nostra13 Jan 10 '13 at 16:30
  • this link : https://github.com/nostra13/Android-Universal-Image-Loader/blob/master/UniversalImageLoaderExample/src/com/nostra13/example/universalimageloader/UILApplication.java should help me ? If yes, I don't see where.. please help me; on your example project my example is put on your IMAGES variable but she doesnt display anything .. – eento Jan 10 '13 at 18:51
  • yes I'm doing this in UILApplication.java : ImageLoaderConfiguration config = new ImageLoaderConfiguration.Builder(getApplicationContext()) .threadPriority(Thread.NORM_PRIORITY - 2) .memoryCacheSize(2 * 1024 * 1024) // 2 Mb .denyCacheImageMultipleSizesInMemory() .discCacheFileNameGenerator(new Md5FileNameGenerator()) .imageDownloader(new ExtendedImageDownloader(getApplicationContext())) .tasksProcessingOrder(QueueProcessingType.LIFO) .enableLogging() // Not necessary in common .build(); So.. – eento Jan 11 '13 at 16:01
  • Did you try run example project? – nostra13 Jan 13 '13 at 10:01
  • yes, your project doesnt display local pics. – eento Jan 16 '13 at 18:49
  • I don't know why you have such problem. Where do you test it (emulator? what device? Android version?)? – nostra13 Jan 16 '13 at 20:10
  • I just have this prob but I made an other think in order to display a static pics from local. I'm building it in 2.2 version SDK and i'm trying on my phone : Galaxy s3 android 4.1.2 – eento Jan 16 '13 at 21:13
  • I have this problem too – Paranoid Android Mar 07 '13 at 15:33
  • exactly same problem here, did you get any solution ? – akshay7692 Aug 10 '14 at 17:49

0 Answers0