I’m trying to use UploadCallback (Java/Android SDK) with no success. The method onProgressUpdate is been called very fast from 1 to 100, not representing the real progress. Can you help me? Here is my code:
UploadCallback uploadCallback = new UploadCallback() {
@Override
public void onProgressUpdate(Integer progress) {
UI.getCurrent().access(new Runnable() {
@Override
public void run() {
progressBar.setValue(new Float(progress/100));
status.setValue("Step 4/4: Uploading Zip to the cloud... " + progress + "% done");
}
});
}
};
Backendless.Files.upload(zipFile.getFile(), "/zips", true, uploadCallback);
[Thank you a lot!