Frage

I'm currently working on an application in college. I have created several games incorporating lots of images. My lecturer however is not happy with the app loading the images from the drawable folder, he wants something more efficient on memory.

Just wondering if anyone knows any solution? i looked at lazyloader and asychronous loading but most examples use images from the web. I need an efficient way to load lots of high quality images from drawable folder to UI.

War es hilfreich?

Lösung

Here is your options:

  1. Load images from drawable as is now
  2. Reduce images size and use lower quality JPEG for mobile
  3. Create download class and download images from server to SD card and use it from there

If you using images in your app, you can read them from drawable, SD card or online. The image have to be somewhere to load it.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top