Wait for result of Async Volley request and return it

前端 未结 2 1234
北荒
北荒 2020-12-05 16:37

Below is a method in which I am trying to retrieve an user object by calling getSelf(). Problem is that the result is always null since the Volley request has not finished a

2条回答
  •  时光取名叫无心
    2020-12-05 17:25

    You can achieve this using the library VolleyPlus https://github.com/DWorkS/VolleyPlus

    It has something called VolleyTickle and RequestTickle. Request is the same. It is synchronous Request and only one request at time.

提交回复
热议问题