Android Tutorial ImageDownloader - The simple way to download images

Status
Not open for further replies.

tpakis

Active Member
Licensed User
Longtime User
So if i have to resume (orientation change) i will have to redownload the images?
 

Beja

Expert
Licensed User
Longtime User
Hi,
I used the above method:
B4X:
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.
 

Beja

Expert
Licensed User
Longtime User
No Don, what should I declare in process global and as what? thank you
 

Beja

Expert
Licensed User
Longtime User
No mention for process global variable, becides didn't know what to declare. Thanks for your help.
 

Beja

Expert
Licensed User
Longtime User
Hi Erel,
Thanks and yes, I appended it at the end of the module, this is what I got:
 

Beja

Expert
Licensed User
Longtime User
it is from clv.clear.. is it because it was put before the initialization line?
 

Beja

Expert
Licensed User
Longtime User
Attached is the project..
 

Attachments

  • testCLV.zip
    15.8 KB · Views: 660

Beja

Expert
Licensed User
Longtime User
Thank you Erel
 
Last edited:

johnB

Active Member
Licensed User
Longtime 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
 

DonManfred

Expert
Licensed User
Longtime User
In the ImageDownloader2 example , again I have tried numerous variation without success eg
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
 

johnB

Active Member
Licensed User
Longtime User
Ok thanks, so I need something like Apache and PHP on the Server, I've used them a long time ago
 

johnB

Active Member
Licensed User
Longtime 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
 

johnB

Active Member
Licensed User
Longtime User
Thanks Don for pointing me in the right direction, I've a NAS Server and I've got it working on that
 

omidaghakhani1368

Well-Known Member
Licensed User
Longtime User
Hi.
The good topic
When picture download and show in imageview,the picture is cache?
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…