{"action":"created","issue":{"url":"https://api.github.com/repos/ParsePlatform/Parse-SDK-Android/issues/186","labels_url":"https://api.github.com/repos/ParsePlatform/Parse-SDK-Android/issues/186/labels{/name}","comments_url":"https://api.github.com/repos/ParsePlatform/Parse-SDK-Android/issues/186/comments","events_url":"https://api.github.com/repos/ParsePlatform/Parse-SDK-Android/issues/186/events","html_url":"https://github.com/ParsePlatform/Parse-SDK-Android/issues/186","id":110886118,"number":186,"title":"getDataInBackground ProgressCallback() not being called","user":{"login":"indiandragon","id":1708856,"avatar_url":"https://avatars.githubusercontent.com/u/1708856?v=3","gravatar_id":"","url":"https://api.github.com/users/indiandragon","html_url":"https://github.com/indiandragon","followers_url":"https://api.github.com/users/indiandragon/followers","following_url":"https://api.github.com/users/indiandragon/following{/other_user}","gists_url":"https://api.github.com/users/indiandragon/gists{/gist_id}","starred_url":"https://api.github.com/users/indiandragon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/indiandragon/subscriptions","organizations_url":"https://api.github.com/users/indiandragon/orgs","repos_url":"https://api.github.com/users/indiandragon/repos","events_url":"https://api.github.com/users/indiandragon/events{/privacy}","received_events_url":"https://api.github.com/users/indiandragon/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ParsePlatform/Parse-SDK-Android/labels/needs%20more%20info","name":"needs more info","color":"ffd182"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-10-11T22:22:09Z","updated_at":"2015-10-12T18:29:00Z","closed_at":null,"body":"Parse Team,\r\n\r\nParse Version 1.10.3\r\nI'm using getDataInBackground on Parse File object to download a audio file uploaded earlier but not able to get progress callback.\r\n\r\n```\r\n   downloadedAudio = (ParseFile)object.get(\"recordedAudioFile\");\r\n\r\n                    downloadedAudio.getDataInBackground(new GetDataCallback() {\r\n                        public void done(byte[] data, ParseException e) {\r\n                                if (e == null) {\r\n                                   //Getting Called\r\n                              }\r\n                        else{\r\n                      }\r\n                  }\r\n                    },new ProgressCallback(){\r\n                        @Override\r\n                        public void done(Integer percentDone) {\r\n                         \r\n                        // Note Getting Called anytime while downloading.\r\n                          \r\n                        }\r\n                    });\r\n```\r\nIs progress callback for getDataInBackground working for anyone ?\r\n"},"comment":{"url":"https://api.github.com/repos/ParsePlatform/Parse-SDK-Android/issues/comments/147483678","html_url":"https://github.com/ParsePlatform/Parse-SDK-Android/issues/186#issuecomment-147483678","issue_url":"https://api.github.com/repos/ParsePlatform/Parse-SDK-Android/issues/186","id":147483678,"user":{"login":"wangmengyan95","id":4666935,"avatar_url":"https://avatars.githubusercontent.com/u/4666935?v=3","gravatar_id":"","url":"https://api.github.com/users/wangmengyan95","html_url":"https://github.com/wangmengyan95","followers_url":"https://api.github.com/users/wangmengyan95/followers","following_url":"https://api.github.com/users/wangmengyan95/following{/other_user}","gists_url":"https://api.github.com/users/wangmengyan95/gists{/gist_id}","starred_url":"https://api.github.com/users/wangmengyan95/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wangmengyan95/subscriptions","organizations_url":"https://api.github.com/users/wangmengyan95/orgs","repos_url":"https://api.github.com/users/wangmengyan95/repos","events_url":"https://api.github.com/users/wangmengyan95/events{/privacy}","received_events_url":"https://api.github.com/users/wangmengyan95/received_events","type":"User","site_admin":false},"created_at":"2015-10-12T18:29:00Z","updated_at":"2015-10-12T18:29:00Z","body":"Hi @indiandragon, I tried you code snippet and it worked fine in my device and emulator. One thing I want to remind you is since we keep a in memory cache for each ParseFile, if you have already had the data of this ParseFile in memory, we won't download the data again from network. In this situation, the ProgressCallback will not be called.\r\nSo in your case:\r\n1. Can you reinstall or clear data of your app and download the ParseFile again to see if the ProgressCallback is triggered or not?\r\n2. If it still does not work for you, it seems you can get the data of your ParseFile, have you verified the data is correct? Do you get any exceptions?"}}