Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- saveInt(Context context,String fileName, String key, int value){
- SharedPreferences sPref = context.getSharedPreferences(fileName, Context.MODE_PRIVATE);
- Editor edit = sPref.edit();
- edit.putInt(key, value);
- edit.apply();
- }
Add Comment
Please, Sign In to add comment