Volley upload progress for StringRequest

≡放荡痞女 提交于 2019-12-11 16:54:25

问题


I am using volley to upload an Image after converting it to String. Now this string could be of MBs data. Now I am planning to show a progress loader with the amount that is being uploaded. foe example: 10% .. 20% .. 30% and so on.

Currently I am using volley StringRequest's POST method.

StringRequest stringRequest = new StringRequest(Request.Method.POST, "url",..

Is there any way to get the progress percentage via using StringRequest Or I need to make custom Request?

PS: I am new to Android development

来源:https://stackoverflow.com/questions/44438020/volley-upload-progress-for-stringrequest

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!