I have 2 emulators, Nexus 5 API 23 and Nexus One API 16.
In Nexus 5 the program runs right, in the Nexus One the crash program and the error it gives is Caused by: java.lang.ClassCastException: java.lang.Object[] cannot be cast to int[][]
It gives error here: meuArray=(int[][]) extras.getSerializable("array");
How can the same code do well in one emulator and bad in the other? Does it have to do with the API's?
EDIT:
int[][] position = new int[5][3];
if(sentado[indice].isChecked()){//Esta parte tem mais if´s mas fazem a mesma coisa que este, so varia os indices
position[0][0]++;}
Bundle bundle = new Bundle();
bundle.putSerializable("array", position);
intent.putExtras(bundle);