{"id":21083917,"url":"https://github.com/spongebobsun/dummypicloader","last_synced_at":"2026-04-28T09:03:22.321Z","repository":{"id":32686575,"uuid":"36275695","full_name":"SpongeBobSun/DummyPicLoader","owner":"SpongeBobSun","description":"Lightweight Image Loader Library for Android","archived":false,"fork":false,"pushed_at":"2015-10-21T05:47:49.000Z","size":6176,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-01T04:23:24.281Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SpongeBobSun.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-05-26T06:04:51.000Z","updated_at":"2015-09-24T02:36:09.000Z","dependencies_parsed_at":"2022-07-20T00:02:31.476Z","dependency_job_id":null,"html_url":"https://github.com/SpongeBobSun/DummyPicLoader","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/SpongeBobSun/DummyPicLoader","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SpongeBobSun%2FDummyPicLoader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SpongeBobSun%2FDummyPicLoader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SpongeBobSun%2FDummyPicLoader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SpongeBobSun%2FDummyPicLoader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SpongeBobSun","download_url":"https://codeload.github.com/SpongeBobSun/DummyPicLoader/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SpongeBobSun%2FDummyPicLoader/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32373515,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-27T20:07:02.737Z","status":"online","status_checked_at":"2026-04-28T02:00:07.250Z","response_time":56,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-19T20:20:51.288Z","updated_at":"2026-04-28T09:03:22.287Z","avatar_url":"https://github.com/SpongeBobSun.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DummyPicLoader\n##Lightweight Async Image Loader Library for Android\nProvide async bitmap loading from local filesystem \u0026 network.\n![screenshot](./screenshot/shot.gif)\n###Introduction\nDummyPicLoader provide async image loading \u0026 caching.\n\nCurrently, DPL provide two ways to load images, loading from file \u0026 loading from URL.\n\nWhen calling loadImageFromFile, DPL will check memory cache first. When specified image is not exist in memory cache, it will decode the file using BitmapFactory in an AsyncTask.\n After passing bitmap to ImageView, it will write this bitmap into memory cache.\n If specified image is found in memory cache, it will passing it to ImageView directly.\n\nWhen calling loadImageFromUrl, DPL will check disk cache first. When specified image is not exist in disk cache, it will download \u0026 put the image to disk cache.\n After that, DPL will load that file and put it to memory cache too.\n If specified image exists in disk cache, DPL will check memory cache, and the rest process is similar to loadImageFromFile.\n\n__About cache:__\n\nDPL provides two kind of cache, DPLDiskCache \u0026 DPLRamCache.\n\nConsider them as a key-value collection. DPLDiskCache using __hash value__ of file name or URL location as its key word.\nDPLRamCache using file name or URL location __directly__ as its key word.\n\nDefault memory cache capacity is `(Runtime.getRuntime().maxMemory() / 1024) / 8 ` KB.\n\nDefault disk cache directory is `/sdcard/data/DPLCache`.\n\nYou can change them as you wish using corresponding methods.\n\nOne more thing, currently DPL __do not__ provide disk cache management. So it __may cause cached images taking huge(not that huge) storage space__.\n###Usage\n####Basic\nLoad image from file:\n\n`DummyPicLoader.getInstance(context).loadImageFromFile(fileName,imageView);`\n\nLoad image from URL:\n\n`DummyPicLoader.getInstance(context).loadImageFromUrl(urlAddr,imageView);`\n####Advanced\nSet a holder image when loader is processing.\n\n`DummyPicLoader.getInstance(getContext()).setDefaultImage(R.drawble.place_holder).loadImageFromFile(fileName,imageView);`\n\nResize picture.\n\n`DummyPicLoader.getInstance(getContext()).resize(300,400).loadImageFromFile(fileName,imageView);`\n\netc, etc\n####Performance\nHaven't got time for a testing through by through. Current case is displaying 40+ wallpapers, average size 2MB, in a grid view on an emulator (4.4, Davik environment, 512M ram). Generally this test app will take 12M memory and didn't cause an OOM so far.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspongebobsun%2Fdummypicloader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fspongebobsun%2Fdummypicloader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspongebobsun%2Fdummypicloader/lists"}