How to exchange data (objects) between different Android Activities?

前端 未结 4 858
暗喜
暗喜 2021-02-09 17:35

What is proper way to exchange data or objects between different Android Activities?

Welcome screen <-> Main Screen <-> Startup routines <-> Processing data <

4条回答
  •  别那么骄傲
    2021-02-09 18:16

    There is an overview on the Android developer page:

    http://developer.android.com/guide/appendix/faq/framework.html#3

    To summarize it, it depends on what type of data your going to pass. But generally speaking, if possible, I would choose Intents, because they are fast and built for that.

    Here is an example that explains how to pass data between activities using Intents.

提交回复
热议问题