Android: what is the difference between Bundle Vs java.util collections like HashMap

前端 未结 2 1258
时光取名叫无心
时光取名叫无心 2020-12-17 16:22

What is the difference between Bundle Vs java.util collections like HashMap?

2条回答
  •  独厮守ぢ
    2020-12-17 17:21

    A Bundle in Android is a tool the apps use to handle resources. It has built in structure that lets the OS search bundles hierarchically to find a specific resource.

    Yes, it is essentially a hash map, but it designed to be a specialized Android component, and not a general purpose data structure.

提交回复
热议问题