Basically, I want to convert the ArrayMap of RemoteMessage.data into a Bundle. In this question (Convert Map to Bundle in android), an answer says writeToParcel
should be useful as Parcel
is a parent class of Bundle
.
But when I looked it up, Bundle extends BaseBundle, which extends Object. What do they mean parent? Can I use writeToParcel
to write the data of an ArrayMap to a Bundle?
https://developer.android.com/reference/android/os/Parcel.html https://developer.android.com/reference/android/os/Bundle.html https://developer.android.com/reference/android/os/BaseBundle.html