views:

56

answers:

1

I'm just wondering how the word parcel was chosen for the Android Parcel Project. I first saw the project in the Advanced Android Coders Cookbook and went onto google searching for Android Parcels, the top results shows the main problem with the name: Android has a class called Parcel.

I was just wondering why this was chosen in spite of this, and why not some robot related like Gear or Part. That would be similar to the the word Gem that was chosen for Ruby.

A: 

android.os.Parcel

Container for a message (data and object references) that can be sent through an IBinder...

The project provides the Parcel class which is used to contain stuff. Real life parcels are also used to contain stuff. The reason they didn't call it gear or part is because those are functional objects rather than containers.

Josh
True but you don't use that parcel class at any point to create an android parcel. It basically a zip file with a JAR of the code, the resources and a JSON descriptor to describe the parcel.
matto1990
@matto: Whether it 'parcels' stuff, or is a 'parcel' in itself, IMO my answer still applies.
Josh