While using Intent object we can put different types of data directly using its putExtra(). We can also put these extra data into a Bundle object and add it to Intent. So why do we need Bundle if we can do so using Intent directly?
While using Intent object we can put different types of data directly using its
Share
Sometimes you need to pass only a
few variablesorvaluesto some OtherActivity, but what if you have abunch of variable's or valuesthat you need to pass to variousActivities. In that case you can useBundleand pass theBundleto the requiredActivitywith ease. Instead of passing single variable’s every time.