I just started to learn java. I am trying to transfer an int array of drawable images from a class to another. this is what I tried:
The first class as follows
Intent intent = new Intent(context, target.class);
intent.putExtra("symbols", symbols);
context.startActivity(intent);
The target class as follows
int symbols = getIntent().getIntExtra("symbols", 0);
ImageView iv = (ImageView) findViewById(R.id.himg);
iv.setImageResource(symbols);
when I ran it, the image didn't show up in the target class. Any solution?