从包中获取内部对象字段的值

Getting value of inner object field from bundle

如何从这个包对象中获取 imageurl 字段的值?

Bundle[{x=15300,y=2200, z=Please check!, extra={" imageurl":"url"}, id=0:15341498867878, priority=normal}]

我正在通过 getIntent().getExtras()

获取此捆绑包

在下面的示例中创建 Bundle 对象并通过键获取值

Bundle bundle = getIntent().getExtras();
String a = bundle.getString("imageurl");

您将在字符串变量 a 中获取值