Problems with two-dimensional array

      byteArray[i][j] = (int)((myValues[j] >> 24) & 0xFF) ;
      byteArray[i][j] = (int)((myValues[j] >> 16) & 0xFF) ;
      byteArray[i][j] = (int)((myValues[j] >> 8) & 0XFF);
      byteArray[i][j] = (int)((myValues[j] & 0XFF));

You assign the same value to all the columns. That can't be what you mean to do.