KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I'm writing an asynchronous image downloader for Android and was just wondering, given an arbitary URL such as: http://www.android.com/images/brand/droid.gif What would be the best way to convert the unique url to a filename. I thought about simply splitting the url and grabbing the last section, but I want the filename to be representative of the whole URL. The other alternatives I thought were replacing all the forward slashes with underscores or simply hashing the whole URL and storing this. If anyone has any ideas I'd love to hear them! Thanks
Tags (comma-separated)
Save Edits
Cancel