如题,我试过这样:
EditText edt = (EditText) findViewById(R.id.price); float number = Float.valueOf(edt.getText().toString());
但是应用在设备和模拟器上都不加载,返回的信息是:
"the application has stopped unexpectedly. please try again."
并且如果我删除了这一行:
float number = Float.valueOf(edt.getText().toString());
应用就能加载了。应该怎么办?
繁星coding
慕的地6264312
江户川乱折腾
相关分类