How do I get images from a folder on Android?

2

I made an example of a ListView where ArrayList is used to fill the TextView and ImageView . But I am improving it by taking data from a MySQL database, in relation to the 'TextView all right, however how I would do to pull the images, I did not want to put the images in the bank but rather load for the mobile device that will use the APK. / p>     

asked by anonymous 24.04.2014 / 22:12

1 answer

2

You can not save the images downloaded by your application to the res/drawable/ folder because it is intended to save images available to the application at design time, that is, before it is compiled. You'll need to download them from somewhere and save them to your device's file system, either in the internal memory or on the SD card. Also, making your application connect directly to a remote database to get data is not recommended, it is best to leave that connection in charge of a webservice (REST for example) that will make that data available to the application through a URL .

    
24.04.2014 / 22:17