How to implement file upload progress bar in android
<p>I am uploading files via <code>org.apache.http.client.HttpClient</code> in android and I need implement progress bar. Is it possible to grab progress from: ?</p>

<pre><code>HttpPost httppost = new HttpPost("some path");
HttpClient httpclient = new DefaultHttpClient();
try {
File file = new File("file path");
InputStream in = new BufferedInputStream(new FileInputStream(file));
byte[] bArray = new byte[(int) file.length()];
in.read(bArray);
String entity = Base64.encodeToString(bArray, Base64.DEFAULT);
httppost.setEntity(new StringEntity(entity));
HttpResponse response = httpclient.execute(httppost);
}
</code></pre>

<p>If not, please show an alternative way. Thanks</p>
