June 17th, 2012, 06:53 AM
Thread Author (OP)
Join Date: Oct 2011
Carrier: Not Provided
Thanked 0 Times in 0 Posts
Grabbing a remote file from a web server
I'm new'ish to Android (but am >10years in IT) and am starting work on an relatively simple app which basically displays a list of products. The user can then click on a product and view the details of that product. That's basically it. Very simple.
There could be ~500products (each which has a Name, Description, Details section). I'm wondering what the best way of designing this. Some thoughts I have are:
- When the customer installs the app, it contacts the company's web server, pulls down a csv file with all the products in it and maybe stores that file in a SQL db. The "list products" screen would then poll this db for data. Then anytime the customer opens the app it polls the db (via an SQLLiteOpenHelper) and renders the list
- I'm ignoring updates to the original csv file for now.
Any thoughts would be good. I know the size of the csv file may well determine the approach.
Thanks ! - Ro