【问题标题】:AsyncTask's doInBackground(Params… params) sending different types of parametersAsyncTask 的 doInBackground(Params...params) 发送不同类型的参数
【发布时间】:2012-06-13 01:14:41
【问题描述】:

我需要这样的东西..同时字符串参数和上下文..

protected String doInBackground(String... strings, Context ctx) {

    this.dhn = new DataHelper(ctx);
    this.dhn.Yaz(strings[0]);

}

【问题讨论】:

    标签: android android-asynctask params


    【解决方案1】:

    我刚做了这个;

    protected String doInBackground(Object... arguments) {
    this.dhn = new DataHelper((Context) arguments[0]);
    }
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-12-25
      相关资源
      最近更新 更多