Volley upload progress for StringRequest

2019-09-15 05:26发布

问题:

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