private void loadCookies(){
  lock.lock();
  try {
    Set<String> cookieStrings=spePreferences.getStringSet(COOKIE_JAR,null);
    if (cookieStrings != null)     cookieJar.addAll(stringSetToCookieList(cookieStrings));
    Set<String> URIStrings=spePreferences.getStringSet(URI_LIST,null);
    if (URIStrings != null) {
      for (      String s : URIStrings) {
        uriIndex.put(URI.create(s),stringSetToCookieList(spePreferences.getStringSet(s,null)));
      }
    }
    Set<String> domains=spePreferences.getStringSet(STRING_LIST,null);
    if (domains != null) {
      for (      String s : domains) {
        domainIndex.put(s,stringSetToCookieList(spePreferences.getStringSet(s,null)));
      }
    }
  }
 catch (  Exception e) {
    Log.e(TAG,"Failed to Load Cookies from SharedPref",e);
  }
  for (  HttpCookie cookie : cookieJar) {
    Log.e(TAG,cookie.getName() + " : " + cookie.getValue());
  }
  lock.unlock();
}

private void loadCookies ( ) { lock . lock ( ) ; try { Set < String > cookieStrings = spePreferences . getStringSet ( COOKIE_JAR , null ) ; if ( cookieStrings != null ) cookieJar . addAll ( stringSetToCookieList ( cookieStrings ) ) ; Set < String > URIStrings = spePreferences . getStringSet ( URI_LIST , null ) ; if ( URIStrings != null ) { for ( String s : URIStrings ) { uriIndex . put ( URI . create ( s ) , stringSetToCookieList ( spePreferences . getStringSet ( s , null ) ) ) ; } } Set < String > domains = spePreferences . getStringSet ( STRING_LIST , null ) ; if ( domains != null ) { for ( String s : domains ) { domainIndex . put ( s , stringSetToCookieList ( spePreferences . getStringSet ( s , null ) ) ) ; } } } catch ( Exception e ) { Log . e ( TAG , "Failed to Load Cookies from SharedPref" , e ) ; } for ( HttpCookie cookie : cookieJar ) { Log . e ( TAG , cookie . getName ( ) + " : " + cookie . getValue ( ) ) ; } lock . unlock ( ) ; }
load cookies from the sharedpreferences storage into the memory of this cookiesstore .
