2012-01-06 51 views

回答

6

它的那样简单:

yourEditor.remove("your key to remove"); 

,你必须记住提交像往常一样:

yourEditor.commit(); 
+1

太棒了!谢谢您的帮助! – 2012-01-06 21:52:33

+4

此外,为共享首选项设置NULL等同于删除它 – espinchi 2014-03-19 16:09:13