Q:

Pass int[] to AsyncTask

I having a problem to pass an int-array to a class that extends AsyncTask.
The int-array consists of resourceId's for bitmap images. 
final int[] resIdImage =  resId_image;

and I send this vector through:
execute(resIdImage);

And the class that extends AsyncTask
static class BitmapWorkerTask extends AsyncTask <int[], Void, Bitmap[]>
   private int[] data = new int[9];

and the doInBackground which recieves these resourceIds through params
@Override
protected Bitmap[] doInBackground(int[] ... params) {

for (int i = 0; i < data.length; i++) {
    data[i] = params[i];
}

But I got the following error int the doInBackGround-method:
Type missmatch: cannot convert from int[] to int
What is wrong with my code?
Thanks in advance!

A:

params[0] here refers to int[]. So you can do the following.
@Override
protected Bitmap[] doInBackground(int[] ... params) {

int[] data=params[0];

