Hi for quite a while now i have been hardcoding all my urls ect into my app, and if something changes I have to update the app!
So the information I have to download
A package name (there are about 7 packages)
I currently add them to a spinner with
I now download a file and read it with this
The Problem I have now is that linked to the file i also have to match it with a URL and and add some other data.
So if spinner2 is set to Install Setup Number 6
Package number 6's URL will be "http://mysite.com/download/pack6"
I see I can do this with a map file as in "Install Setup Number 1" , "http://mysite.com/download/pack1"
but i also need to have 2 more bits of info associated with the pack!
A location to an image file & a location to a description file! So looking at it I would have to have a text file containing, The Package names! and then 3 map files? It looks to me that I am OVER COMPLICATING this!
Can anyone suggest a simpler way?
Ideally a file that contained something like this
title, url, image url, description!
Install Package 1 , http://mysite.com/download/pack1 , http://mysite.com/download/pack1.jpg , This is package 1 is great, but package 2 is better
Thanks Aidy
So the information I have to download
A package name (there are about 7 packages)
I currently add them to a spinner with
B4X:
Spinner2.Add ("Install Setup Number 1")
I now download a file and read it with this
B4X:
Dim tmplist As List
tmplist=(File.Readlist(File.DirDefaultExternal , "/Download/packagelist"))
Spinner2.AddAll(tmplist)
Log("added "&tmplist)
End Sub
The Problem I have now is that linked to the file i also have to match it with a URL and and add some other data.
So if spinner2 is set to Install Setup Number 6
Package number 6's URL will be "http://mysite.com/download/pack6"
I see I can do this with a map file as in "Install Setup Number 1" , "http://mysite.com/download/pack1"
but i also need to have 2 more bits of info associated with the pack!
A location to an image file & a location to a description file! So looking at it I would have to have a text file containing, The Package names! and then 3 map files? It looks to me that I am OVER COMPLICATING this!
Can anyone suggest a simpler way?
Ideally a file that contained something like this
title, url, image url, description!
Install Package 1 , http://mysite.com/download/pack1 , http://mysite.com/download/pack1.jpg , This is package 1 is great, but package 2 is better
Thanks Aidy