Return value from AsyncTask class onPostExecute method

前端 未结 3 2043
南笙
南笙 2020-11-27 05:50

Ok so now I have Class A that contains some spinners that values will be populated by Class B that extends AsnycTask which grabs the s

3条回答
  •  借酒劲吻你
    2020-11-27 06:33

    Create a interface like OnCompletRequest() then pass this to your ClassB constructor and simply call the method inside this interface such as complete(yourList list) in the method of onPostExecute(String result)

提交回复
热议问题