Mert
Mert

Reputation: 6572

AsyncTask's doInBackground(Params… params) sending different types of parameters

I need something like this.. String params and Context in the same time..

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

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

}

Upvotes: 1

Views: 1332

Answers (1)

Mert
Mert

Reputation: 6572

I just made this;

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

Upvotes: 3

Related Questions