by default from api for asyncTask the signature for it is doInBackground(Param ...params)
in my app I have this signature:
public String doInBackground(String ...params)
I tried and changed to this:
public String doInBackground(String param, int x)
but it gives me error:
class DataTasker must be declared abstract or implement abstract method 'doInBackground(Params...params)
I know this 3 dots is an array and i can access it like
params[0] , params[1].
But still confused, in my main activity class I want to pass this data for background task: a string , an integer
DataTasker data = new DataTasker() ;
data.execute("mister x " , 56) ;
But apparently, i must pass only one argument