1. *** New version of B4J is available ***
    B4J v7.8
    Dismiss Notice

Android Question ImageDownloader with JRDC2

Discussion in 'Android Questions' started by Johan Hormaza, Aug 15, 2019.

  1. Johan Hormaza

    Johan Hormaza Active Member Licensed User

    How can I download multiple images from a JRDC2 database using ImageDownloader or something similar?
    Thank you!
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    ImageDownloader is mostly never needed.

    You should make regular requests with DBRequestManager and then convert the blobs to images. There are utility methods in DBRequestManager to help you with the conversion.
     
    BillMeyer likes this.
  3. Johan Hormaza

    Johan Hormaza Active Member Licensed User

    That is clear to me EREL. What I mean is to download the images in the same style as the ImageDownloader class.
    Because the way JRDC2 does it, the Activity affects me when it enters Pause and this causes me to open the activity again when I go out to another activity, something that ImageDownloader does not do.
    Thank you.
     
  4. Erel

    Erel Administrator Staff Member Licensed User

    Move the code to the starter service. Check if the activity is not paused and if not call a sub in that activity and set the image.
     
    Johan Hormaza likes this.
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice