使用Bundle.GetParcelable(string?)代替它。
例如,如果您正在从Bundle中获取一个Parcelable对象,可以使用以下代码:
MyParcelable myParcelable = bundle.GetParcelable("myParcelableKey");
其中,MyParcelable是您的Parcelable对象的类,"myParcelableKey"是在Bundle中使用的键名。
上一篇:Bundle.GetParcelable(string?)isobsolete:'deprecated'
下一篇:bundle.getParcelableArrayList() 返回 null。