Loading images from filesystem in CoronaCards

Hi, i have a basic question, I have an android app that downloads some images and store them in the file system, whats the correct way to show them inside the coronacard view? , I’m not sure about how Corona should receive paths from the host application.

Thanks

Hugo

You would save the images to http://docs.coronalabs.com/daily/native/android/html/com/ansca/corona/CoronaEnvironment.html#getCachesDirectory(android.content.Context)

or the other directories you can retrieve from that class.  Then you can call http://docs.coronalabs.com/daily/api/library/display/newImage.html

specifying the baseDir as the directory you’ve saved it to (eg. http://docs.coronalabs.com/daily/api/library/system/CachesDirectory.html)

You would save the images to http://docs.coronalabs.com/daily/native/android/html/com/ansca/corona/CoronaEnvironment.html#getCachesDirectory(android.content.Context)

or the other directories you can retrieve from that class.  Then you can call http://docs.coronalabs.com/daily/api/library/display/newImage.html

specifying the baseDir as the directory you’ve saved it to (eg. http://docs.coronalabs.com/daily/api/library/system/CachesDirectory.html)