lenghtOfFile = (int) entity.getContentLength();
int count; byte data[] = new byte[1024]; long total = 0; while ((count = inputStream.read(data)) != -1) { total += count; publishProgress(Integer.valueOf("" + (int) ((total * 100) / lenghtOfFile))); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)