Advantages of using Bundle instead of direct Intent putExtra() in Android

后端 未结 4 1859
青春惊慌失措
青春惊慌失措 2020-11-29 18:10

In my android application I\'m always using direct putExtra() function of Intent class to pass any number of value to new Activity.

4条回答
  •  被撕碎了的回忆
    2020-11-29 18:43

    you can refer Intent and Bundle Relation (Stackoverflow) and also What is the importance of bundle in an Android program (Stackoverflow).

    you can send multiple or bunch of data in one bundle and send it through Intent. or another way is add multiple statements of PutExtra().

    And there is not any such important difference as per my knowledge.

提交回复
热议问题