1

Android How to Pass LinkedHashMap Between Activities?

view story
linux-howto

http://stackoverflow.com – I am trying to pass LinkedHashMap between activities, my code is like this Activity A LinkedHashMap mLinkedHashMap = new LinkedHashMap<String, Object>(); // setting data in map Bundle bundle = new Bundle(); bundle.putSerializable("OBJECTS_LINKED_HASHMAP", mLinkedHashMap); Intent intent = new Intent(this, ActivityB.class); intent.putExtras(bundle); startActivity(intent); in Activity when I receive bundle object I am getting "Class cast exception" error message Activity B Bundle bundle = this.getIntent().getExtras(); LinkedHashMap mLinkedHashMap = new LinkedHashMap<String, Ob (HowTos)