I tried to pass an HashMap via intent from fragment to activity, but without success. this is my code:
private HashMap<Integer, JSONObject> myData;
Intent intent = new Intent(this.getActivity(),MyActivity.class);
intent.putExtra("myMap", myData);
startActivity(intent);
and I got a runtimeExeption:
java.lang.RuntimeException: Parcel: unable to marshal value
I would be happy if someone can help me with that! I need a way to resolve it, I know that JSONObject is not Serializable. The value is not a custom object, therfore I can't implement Serializable there. Thank a lot!