Bundle - is key case sensitive?

前端 未结 2 2024
长情又很酷
长情又很酷 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:37

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

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

提交回复
热议问题