Convert a double 2D array to a String 2D array and send it the same way you do:
Submit:
b.putSerializable("array", other_locations_string);
To obtain:
String[][] value = (String[][]) b.getSerializable("array");
And then converts it back to a 2d double array .
The reason for this behavior is that Java (and therefore Android) does not allow you to inject objects into primitive types or arrays of primitive types. What for? Because Java considers valid a listing that converts a superclass object to a subclass object, or vice versa. String[][] extends Object , but double and double[][] - no.
source share