Passing parameters to Asynctask

后端 未结 4 1541
日久生厌
日久生厌 2021-01-31 10:48

I am using Async tasks to get string from the menu activity and load up some stuff..but i am not able to do so..Am i using it in the right way and am i passing the parameters co

4条回答
  •  忘掉有多难
    2021-01-31 11:21

    A simple way is to add a constructor:

    public Setup(String a, Int b) {
        this.a = a;
        this.b = b;
    }
    

提交回复
热议问题