Android Tutorial ImageDownloader - The simple way to download images

Discussion in 'Tutorials & Examples' started by Erel, Jul 9, 2013.

Thread Status:
Not open for further replies.
  1. tpakis

    tpakis Active Member Licensed User

    So if i have to resume (orientation change) i will have to redownload the images?
     
  2. Beja

    Beja Expert Licensed User

    Hi,
    I used the above method:
    Code:
    Public Sub ClearCache
       
    cache.Clear
    End Sub
    But I get the message on compile saying
    Cache is used before assigning any value..
    Any meaning appreciated.
     
  3. DonManfred

    DonManfred Expert Licensed User

    do you have a process global variable of the same name?
     
  4. Beja

    Beja Expert Licensed User

    No Don, what should I declare in process global and as what? thank you
     
  5. Beja

    Beja Expert Licensed User

    No mention for process global variable, becides didn't know what to declare. Thanks for your help.
     
  6. Erel

    Erel Administrator Staff Member Licensed User

    You need to add this sub to the ImageDownloader module.
     
  7. Beja

    Beja Expert Licensed User

    Hi Erel,
    Thanks and yes, I appended it at the end of the module, this is what I got:
     
  8. Erel

    Erel Administrator Staff Member Licensed User

    Run your code in debug mode to see the line that raises the error.
     
  9. Beja

    Beja Expert Licensed User

    debugwindow.jpg it is from clv.clear.. is it because it was put before the initialization line?
     
  10. Beja

    Beja Expert Licensed User

    Attached is the project..
     

    Attached Files:

  11. Erel

    Erel Administrator Staff Member Licensed User

    You are calling a method on clv before it was initialized.
     
  12. Beja

    Beja Expert Licensed User

    Thank you Erel
     
    Last edited: Mar 24, 2015
  13. johnB

    johnB Active Member Licensed User

    Hi
    (Sorry if I have posted this in the wrong place but there are many examples/tutorials on retrieving images on the forum)
    I'm trying to download images from my Windows Server to display.
    I'm having trouble with the Address(Link).
    I have been successfully using the address with RDC for, well as long as RDC's been available
    Wondering if somebody would be good enough to point out where i'm going wrong

    In RDC, the address I'm using is - reqManager.Initialize(Me, "http://j??????????.?????.net:17178"), this is a No-IP address

    In the image download programs available on the forum

    In the Flicker example I have used something like this - MainUrl = "http://www.j?????????.????.net/C:/Users/jb/Pictures/Family/" where the images are in C:/Users/jb/Pictures/Family/. I've tried it with the Server Name - \\WIN-KA57JNPJAAS but that didn't work either. I've tried many different combinations without success.

    In the ImageDownloader2 example , again I have tried numerous variation without success eg

    pageJob.Download("http://j?????????.????.net:17178/?method=test#WIN-KA57JNPJAAS/Users/jb/Dropbox/Photos/jb")
    pageJob.Download2("http://j????????.????.net:17178/?method=test#WIN-KA57JNPJAAS/Users/jb/Dropbox/Photos/jb", Array As String("User = A......", "Password = A......"))
    'pageJob.Download2("http://j?????????.????.net:17178/?method=test", Array As String("WIN-KA57JNPJAAS/Users/jb/Dropbox/Photos/jb"))

    I'm sure it must need a Use and Password somewhere

    Thanks in anticipation
     
  14. DonManfred

    DonManfred Expert Licensed User

    You are confusing two different things. RDC has nothing to do wqith imagedownloading.

    The image must be accessible via a webserver running on that machine and you need to use the right url for the download. Not the RDC url
     
  15. johnB

    johnB Active Member Licensed User

    Ok thanks, so I need something like Apache and PHP on the Server, I've used them a long time ago
     
  16. DonManfred

    DonManfred Expert Licensed User

    Yes, correct
     
  17. johnB

    johnB Active Member Licensed User

    Thanks Don for your prompt reply, I'll download them and see what my memory is like, but there's plenty of Online support these days, not like the days when I had to go into a city book store and spend $70 on a book. I have 2 on PHP, Apache and MySql, old but a good starting point

    Thanks again
     
  18. johnB

    johnB Active Member Licensed User

    Thanks Don for pointing me in the right direction, I've a NAS Server and I've got it working on that
     
    DonManfred likes this.
  19. omidaghakhani1368

    omidaghakhani1368 Well-Known Member Licensed User

    Hi.
    The good topic
    When picture download and show in imageview,the picture is cache?
     
  20. Erel

    Erel Administrator Staff Member Licensed User

    Yes.
     
Thread Status:
Not open for further replies.
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