Skip to content Skip to sidebar Skip to footer

Bundle - Is Key Case Sensitive?

I'm using Bundle to send data. Bundle b = new Bundle(); b.putDouble('x', this.Location.X); b.putDouble('y', this.Location.Y); Is key case sensitive?

Solution 1:

Bundle and other Key Mapping mechanism are case sensitive.

For more discussion see here

Solution 2:

Looks like a simple Map, so probably. Why don't you test it?

EDIT: The key is a String. "x".equals("X") == false

Post a Comment for "Bundle - Is Key Case Sensitive?"