Skip to content
This repository was archived by the owner on Apr 3, 2025. It is now read-only.

Commit ede7137

Browse files
author
Mohammad Ali Riazati
committed
Initial commit
Initial commit
1 parent 0e3de46 commit ede7137

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

app/src/main/java/ir/farsroidx/application/MainActivity.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,13 @@ protected void onCreate(Bundle savedInstanceState) {
2222
utils.writeLong ("key" , 85L);
2323

2424
// Read From Preference
25-
String s = utils.readString ("key" , "alternative" );
25+
String s = utils.readString ("key" , "alternative" );
2626
boolean b = utils.readBoolean ("key" , false);
2727
float f = utils.readFloat ("key" , 1.02F);
2828
int i = utils.readInteger ("key" , 0);
2929
long l = utils.readLong ("key" , 85L);
30+
31+
utils.remove("key");
32+
utils.clearAll();
3033
}
3134
}

0 commit comments

Comments
 (0)