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