Java tutorial
//package com.java2s; import android.content.Context; public class Main { public static boolean getStatusOfRenderResetSwitcher(Context context) { boolean flag; try { flag = context.getSharedPreferences(context.getPackageName(), 1).getBoolean("reset_default_render", false); } catch (Exception exception) { return false; } return flag; } }