Download Progress in Android
<p>i have developed an app which shows progress of downloads in a progress bar.  </p>

<pre><code>while ((chunkBytes = httpInputStream.read(outputByte, 0, 1024)) != -1) {

                bytesRead = bytesRead + chunkBytes;
                // write contents to the file
                fileOutputStream.write(outputByte, 0, (int) chunkBytes);
                // publish the progress of downloading.. 
                publishProgress((int)((bytesRead)*100/fileSize));

            }
</code></pre>

<p>But, what i am trying to do is - instead of that 58/100 .. (secondary progress ?) would like to display 3.5 mb/5.5 mb .... (MBs downloaded / Total MB) below that progress.. i have tried to change the secondary progress but of no help..  Is there any other way?</p>
