Java tutorial
//package com.java2s; import android.content.Context; public class Main { public static void setStatusOfRenderResetSwitcher(Context context, boolean flag) { try { context.getSharedPreferences(context.getPackageName(), 1).edit() .putBoolean("reset_default_render", flag).commit(); return; } catch (Exception exception) { return; } } }