Я загружаю файлы через org.apache.http.client.HttpClient
в android, и мне нужно реализовать индикатор выполнения. Можно ли добиться прогресса от:?
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);
}
Если нет, пожалуйста, покажите альтернативный путь. Благодаря