I am building an app that shows user's FB friends' location on a map with their profile pic as the map marker icon.
After downloading friends' pics, I stored them on ArrayList on a global application object and then show them on the map. I've realized that I am spending a lot of heap memory for doing that.
I guess the right way to do it will be by storing them on the external storage, but I am not sure how to do it. Or maybe use SQLite database.
So my question is, what is the most efficient way to do that process? keep in mind that when a user's friend connect to the app, the app should show him on the map in real time.