How to send objects through bundle

前端 未结 11 1231
我寻月下人不归
我寻月下人不归 2020-11-27 13:15

I need to pass a reference to the class that does the majority of my processing through a bundle.

The problem is it has nothing to do with intents or contexts and ha

11条回答
  •  遥遥无期
    2020-11-27 13:25

    The Parcelable interface is a good way to pass an object with an Intent.

    How can I make my custom objects Parcelable? is a pretty good answer on how to use Parcelable

    The official google docs also include an example

提交回复
热议问题