Asynctask: pass two or more values from doInBackground to onPostExecute

后端 未结 5 1311
无人及你
无人及你 2020-12-03 01:06

I have an Asynctask which retrieves two int vaules and i want to pass them to onPostExecute to show them on the view.
Here is my code:

    public class Q         


        
5条回答
  •  既然无缘
    2020-12-03 02:10

    Generally speaking, replace Integer with ArrayList of Objects. with this array, you can pass any collection of any types. but obviously, the downside is you should cast the members and you should know all the types...

提交回复
热议问题