Bundle - is key case sensitive?

前端 未结 2 2021
长情又很酷
长情又很酷 2021-01-24 09:10

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

相关标签:
2条回答
  • 2021-01-24 09:34

    Bundle and other Key Mapping mechanism are case sensitive.

    For more discussion see here

    0 讨论(0)
  • 2021-01-24 09:37

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

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

    0 讨论(0)
提交回复
热议问题