Java tutorial
//package com.java2s; import android.content.Context; public class Main { private static final String LOGGED_ATHLETE = "logged_athlete"; private static final String PREFERENCES_FILE = "main"; /** * Deletes the logged athlete from the android shared preferences */ public static void removeLoggedAthlete(Context context) { context.getSharedPreferences(PREFERENCES_FILE, Context.MODE_PRIVATE).edit().remove(LOGGED_ATHLETE).commit(); } }