Java tutorial
//package com.java2s; import android.content.Context; import android.preference.PreferenceManager; public class Main { public static boolean isManualSize(Context context) { return PreferenceManager.getDefaultSharedPreferences(context).getBoolean("manualSize", false); } }