{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/fresco/issues/928","labels_url":"https://api.github.com/repos/facebook/fresco/issues/928/labels{/name}","comments_url":"https://api.github.com/repos/facebook/fresco/issues/928/comments","events_url":"https://api.github.com/repos/facebook/fresco/issues/928/events","html_url":"https://github.com/facebook/fresco/issues/928","id":127182622,"number":928,"title":"How to I determine the image in downloading process or writing process to make disk cache?","user":{"login":"tonyjs","id":8830704,"avatar_url":"https://avatars.githubusercontent.com/u/8830704?v=3","gravatar_id":"","url":"https://api.github.com/users/tonyjs","html_url":"https://github.com/tonyjs","followers_url":"https://api.github.com/users/tonyjs/followers","following_url":"https://api.github.com/users/tonyjs/following{/other_user}","gists_url":"https://api.github.com/users/tonyjs/gists{/gist_id}","starred_url":"https://api.github.com/users/tonyjs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tonyjs/subscriptions","organizations_url":"https://api.github.com/users/tonyjs/orgs","repos_url":"https://api.github.com/users/tonyjs/repos","events_url":"https://api.github.com/users/tonyjs/events{/privacy}","received_events_url":"https://api.github.com/users/tonyjs/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-01-18T09:08:04Z","updated_at":"2016-01-20T16:12:23Z","closed_at":null,"body":"I want to find the stage of the image request.\r\nso I added code \r\n```\r\nDataSource<Boolean> dataSource = Fresco.getImagePipeline().isInDiskCache(originalUri);\r\ndataSource.subscribe(new DataSubscriber<Boolean>() {\r\n    @Override\r\n    public void onNewResult(DataSource<Boolean> dataSource) {\r\n        boolean isInDiskCache = dataSource.isFinished()\r\n                && (dataSource.getResult() != null && dataSource.getResult());\r\n        Log.d(\"tony\", \"isInDiskCache \" + isInDiskCache);\r\n    }\r\n\r\n    @Override\r\n    public void onFailure(DataSource<Boolean> dataSource) {\r\n        Log.e(\"tony\", \"onFailure\");\r\n    }\r\n\r\n    @Override\r\n    public void onCancellation(DataSource<Boolean> dataSource) {\r\n        Log.e(\"tony\", \"onCancellation\");\r\n    }\r\n\r\n    @Override\r\n    public void onProgressUpdate(DataSource<Boolean> dataSource) {\r\n        Log.i(\"tony\", \"onProgressUpdate\");\r\n    }\r\n}, UiThreadExecutorService.getInstance());\r\n```\r\nbut I always get false value at the method 'onNewResult' even though the stage on download, encode or decode.\r\n"},"comment":{"url":"https://api.github.com/repos/facebook/fresco/issues/comments/173253186","html_url":"https://github.com/facebook/fresco/issues/928#issuecomment-173253186","issue_url":"https://api.github.com/repos/facebook/fresco/issues/928","id":173253186,"user":{"login":"balazsbalazs","id":879166,"avatar_url":"https://avatars.githubusercontent.com/u/879166?v=3","gravatar_id":"","url":"https://api.github.com/users/balazsbalazs","html_url":"https://github.com/balazsbalazs","followers_url":"https://api.github.com/users/balazsbalazs/followers","following_url":"https://api.github.com/users/balazsbalazs/following{/other_user}","gists_url":"https://api.github.com/users/balazsbalazs/gists{/gist_id}","starred_url":"https://api.github.com/users/balazsbalazs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/balazsbalazs/subscriptions","organizations_url":"https://api.github.com/users/balazsbalazs/orgs","repos_url":"https://api.github.com/users/balazsbalazs/repos","events_url":"https://api.github.com/users/balazsbalazs/events{/privacy}","received_events_url":"https://api.github.com/users/balazsbalazs/received_events","type":"User","site_admin":false},"created_at":"2016-01-20T16:12:23Z","updated_at":"2016-01-20T16:12:23Z","body":"Hey, thanks for reporting this issue!\r\n\r\nFresco is getting really popular and truth is we're getting a bit overwhelmed by the activity surrounding it. There are just too many issues for us to manage properly.\r\n\r\nIf you don't know **how to do something** or **something is not working as you expect but not sure it's a bug**, please ask on [StackOverflow](http://stackoverflow.com/questions/ask?tags=fresco,android) with the tag fresco and android. We're answering questions on stackoverflow but there are a lot more people in the community who can help you.\r\n\r\nWe welcome clear issues and PRs that are ready for in-depth discussion. Please provide screenshots where appropriate and always mention the version of Fresco you're using. Thank you for your contributions!\r\n"}}