progress

Getting upload progress using Azure Storage in Android

两盒软妹~` 提交于 2021-02-10 16:39:06
问题 I'm uploading a file in my Android application. The code is pretty simple: private boolean UploadFile(String fileLocation) { try { if (TextUtils.isEmpty(fileLocation)) { return false; } File fSrc = new File(fileLocation); if (!fSrc.exists()) { return false; } boolean bReturn = AzureManager.init(this); if (!bReturn) { return false; } String blobName = fSrc.getName(); InputStream in = new BufferedInputStream(new FileInputStream(fSrc)); CloudBlobContainer container = AzureManager