I have a problem to pass an integer array between two activities. I tried this code:
ActivityA:
Bundle myBundle = new Bundle();
myBundle.putIntArray("myarray", array);
startActivity(intent);
ActivityB:
Bundle myBundle = getIntent().getExtras();
int[] myIntArray = myBundle.getIntArray("myarray");
I don't understand why i can't use array values in activityB. Can you help me, please? Thanks