Code example for Annotation

0
            if (label != null) {
                s.setSpan(new Annotation("label", label.toString()), 0, len,
                          Spannable.SPAN_EXCLUSIVE_EXCLUSIVE);
            } 
            if (number != null) {
                s.setSpan(new Annotation("number", number), 0, len,
                          Spannable.SPAN_EXCLUSIVE_EXCLUSIVE);
            } 
            s.setSpan(new Annotation("bcc", String.valueOf(bcc)), 0, len,
                      Spannable.SPAN_EXCLUSIVE_EXCLUSIVE);
 
            return s;
        } 
         
        public static String buildNameAndNumber(String name, String number) {
            // Format like this: Mike Cleron <(650) 555-1234> 
            //                   Erick Tseng <(650) 555-1212> 
            //                   (408) 555-1289 
 
            if (!TextUtils.isEmpty(name) &&
Stop searching for code, let great code find you!  Add Codota to your java IDE