???
aide吧
全部回复
仅看楼主
level 13
Used℃AT 楼主
2018年11月26日 07点11分 1
level 13
Used℃AT 楼主
为什么他的putString就可以用(‵□′)
2018年11月26日 07点11分 2
我的就不行(`^´)
2018年11月26日 07点11分
level 12
因为你抄错了[滑稽]
2018年11月26日 07点11分 3
那些又不是定死的(* ̄m ̄) 关键是报错的是putString,这说明其他的地方没错
2018年11月26日 08点11分
抱歉,后来我发现还真的抄错了
2018年11月27日 00点11分
@Used℃AT 额……
2018年11月27日 03点11分
level 3
方法名呢[乖]
2018年11月26日 15点11分 4
level 13
sp.edit().putXXX应该是这样?
2018年11月26日 17点11分 5
我成功啦!!!就是像你说的那样!谢谢你(^~^)
2018年11月27日 00点11分
但是这样语法是没问题,但没有实际效果
2018年11月27日 00点11分
@4455jkjh1 少了commit
2019年03月03日 02点03分
level 13
SharedPreference.Editor edit = sp.exit();
edit.putString(xxxx);
edit.commit()
2018年11月26日 19点11分 6
sp.edit()
2018年11月26日 19点11分
这个方法putString里的getText()会报错诶
2018年11月27日 00点11分
@Used℃AT ???
2018年11月27日 00点11分
edit.putString("editstr",edit.getText().toString());//就是这句
2018年11月27日 00点11分
level 13
Used℃AT 楼主
2018年11月27日 01点11分 7
这样啊,改为MainActivity.this.edit.getText().toString()
2018年11月27日 01点11分
@4455jkjh1 可以了,完美运行!ヽ(^0^)ノ
2018年11月27日 01点11分
level 1
啊啊啊,怎么回事啊,求解!!!
2019年03月02日 13点03分 8
明明打印出来Hello了,为什么不行。。。
2019年03月02日 13点03分
1