Java tutorial
//package com.java2s; import android.content.Context; import android.content.SharedPreferences; public class Main { public static void deleteLoginInfo(Context context) { SharedPreferences.Editor editor = context.getSharedPreferences("LoginCookie", Context.MODE_PRIVATE).edit(); editor.clear().commit(); } }