Code example for SortedSet

Methods: clear

0
 
    public void clearEmailsAndPhones() { 
        this._defaultContactPhone = "";
        this._defaultTextPhone = "";
        this._defaultEmail = "";
        this._emails.clear();
        this._phones.clear();
    } 
 
    public void downloadGravatar(Context context) {
 
        // Try to get gravatar 
        if(this.getId() > 0) {
            try { 
                String email = this.getDefaultEmail() == null ? this.getName() : this.getDefaultEmail().toLowerCase();
                String gravatar = MD5Util.md5Hex(email);
                URL url = new URL("http://www.gravatar.com/avatar/" + gravatar + "?d=monsterid");
                HttpURLConnection conn = (HttpURLConnection) url.openConnection();
                conn.connect();
                InputStream is = conn.getInputStream();
                String filename = this.getLocalGravatarPath();