The android.os.Message uses a Bundle to send with it\'s sendMessage-method. Therefore, is it possible to put a HashMap inside a
android.os.Message
Bundle
HashMap
In Kotlin:
hashMap = savedInstanceState?.getSerializable(ARG_HASH_MAP) as? HashMap putSerializable(ARG_HASH_MAP, hashMap)