Code example for URI

Methods: toASCIIString

0
  public void persistToPrefs(SharedPreferences prefs) {
    Editor edit = prefs.edit();
    if (clusterURL == null) {
      edit.remove("clusterURL");
    } else { 
      edit.putString("clusterURL", clusterURL.toASCIIString());
    } 
    if (syncID != null) {
      edit.putString("syncID", syncID);
    } 
    edit.commit();
    // TODO: keys. 
  } 
 
  @Override 
  public String credentials() {
    return username + ":" + password;
  } 
 
  @Override 
  public CollectionKeys getCollectionKeys() {