sending bundle to another activity

前端 未结 6 1160
再見小時候
再見小時候 2021-01-15 03:03

I am trying to send a bundle from one activity to another. When I load the bundle in the recieving activity all the information seems to be null. Here is some code:

6条回答
  •  庸人自扰
    2021-01-15 03:55

    You must use exact key sent:

    String hotelName = b.getString("hotelname");
    

    Updated!

提交回复
热议问题