如上 userId 是用的 putString(),我们取值时不能用 getInt() 取值,即使它是数字格式,也不能。
Intent 也类似,putExtra 传的参数是 String,就不能用 getIntExtra 取。
相关阅读
创建于2005年 渝ICP备05010272号-1
电邮:cftea@126.com