static SharedPreferences getSharedPreferences ( ) { if ( null == getApplicationContext ( ) ) return null ; SharedPreferences rtn = getApplicationContext ( ) . getSharedPreferences ( PREF_FILE , Context . MODE_PRIVATE ) ; if ( null == rtn ) { Log . e ( WonderPush . TAG , "Could not get shared preferences" , new NullPointerException ( "Stack" ) ) ; } return rtn ; }
Gets the WonderPush shared preferences for that application .