Log wtf - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Log wtf method.

This code example shows how to use the following methods:wtf, getLocalizedMessage, printStackTrace
        final DateFormat formatter = new SimpleDateFormat("yyyy-MM-dd'T'hh:mm:ss");
        Date d = null;
        try { 
            d = formatter.parse(dateStr);
        } catch (ParseException e) { // this shouldn't ever happen
            e.printStackTrace();
            Log.wtf("Date format problem", e.getLocalizedMessage(), e);
        } 
        c.setTime(d);
        return c;
    } 
 
    public static String getISOStringFromDate(final Calendar date) {
        if (date == null) return "";
        final DateFormat formatter = new SimpleDateFormat("yyyy-MM-dd'T'hh:mm:ss");
        return formatter.format(date.getTime());
    } 
 
    public static String fixHtmlEntities(final String toFix) {
        if (toFix == null) return null;
5
CodeRank

Related Log wtf Questions & Answers:

wtf Method Overview
What a Terrible Failure: Report an exception that should never happen.
See Code Examples for other Android Log Methods: