Android intent bundle always null?

后端 未结 3 669
悲&欢浪女
悲&欢浪女 2020-12-21 18:28

I am running the below code. There are two snippets. The first is how I am setting the bundle and the second how I am retrieving it. For some reason every time i check the b

3条回答
  •  Happy的楠姐
    2020-12-21 19:22

    From the documentation:

    The keys must include a package prefix, for example the app com.android.contacts would use names like "com.android.contacts.ShowAll".

    so instead why don't you just use

    intent.putExtra("WELL", "yes");
    

提交回复
热议问题