Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/227.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android 异步任务';s doInBackground(Params…;Params)发送不同类型的参数_Android_Android Asynctask_Params - Fatal编程技术网

Android 异步任务';s doInBackground(Params…;Params)发送不同类型的参数

Android 异步任务';s doInBackground(Params…;Params)发送不同类型的参数,android,android-asynctask,params,Android,Android Asynctask,Params,我需要这样的东西。。字符串参数和上下文同时存在 protected String doInBackground(String... strings, Context ctx) { this.dhn = new DataHelper(ctx); this.dhn.Yaz(strings[0]); } 我刚做了这个 protected String doInBackground(Object... arguments) { this.dhn = new DataHelper((

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

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

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

}
我刚做了这个

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