更新时间:2023-11-27 23:00:46
消息很清楚,你不能把一种类型转换成完全不同的东西。如果变量是float
类型,则必须将其作为float
传递。请参阅 http://developer.android.com/reference/ android / content / Intent.html#putExtra(java.lang.String,float) [ ^ ]。
The message is quite clear, you cannot cast one type to something totally different. If the variable is afloat
type then you must pass it as afloat
. See http://developer.android.com/reference/android/content/Intent.html#putExtra(java.lang.String, float)[^].