- 2 Posts
Best Practice Images - Preloaded
I am developing an app that I wish to have pre-loaded with product images.
Currently, I am accessing them from the resources folder 'drawable'.
However, I also want the user to be able to add to list of products later by retrieving product information and products from a web server.
I can't access the resources folder at run time to save the images, so I need to have a single place to store them and retrieve them later.
I have tried saving to the application directory, but am not having much success.
Could some advice on the best practice in this situation. I believe that storing images in the database is not considered good practice.
- 2 Posts
Re: Best Practice Images - Preloaded
For the moment I have decided to store these images in the Assets directory and copy them to the application directory when the application is first installed.
Then for any subsequent images that are saved at runtime, they can be saved to the same application directory.
Still would be interested in hearing from anyone about this approach and/or any best practice patterns for this scenario.
- By jdevenberg in forum Moto XReplies: 30Last Post: 01-05-2014, 07:58 PM
- By dirtyjudo in forum Google Nexus 5Replies: 6Last Post: 12-13-2013, 10:58 AM
- By greydarrah in forum Google Nexus 5Replies: 1Last Post: 12-12-2013, 03:45 PM
- By Ray Sivley in forum Android ApplicationsReplies: 0Last Post: 12-11-2013, 08:18 PM
- By JRod7722 in forum Google Nexus 5Replies: 5Last Post: 12-11-2013, 02:26 PM