/** * Get the ITroveboxApi implementation * * @return */ public static ITroveboxApi getApi() { return getApi(TroveboxApplication.getContext()); }
public static SharedPreferences getDefaultSharedPreferences(Context context) { return PreferenceManagerHelper.wrap( TroveboxApplication.getContext() == null ? context : TroveboxApplication.getContext(), PREFERENCES_NAME, PREFERENCES_MODE); }
public static SharedPreferences getSharedPreferences(String name) { return PreferenceManagerHelper.wrap(TroveboxApplication.getContext(), name, PREFERENCES_MODE); }
/** * Is user logged in to application * * @return */ public static boolean isLoggedIn() { return isLoggedIn(TroveboxApplication.getContext()); }