Code example for AccessibilityEvent

Methods: getText

0
        final int flags = DateUtils.FORMAT_SHOW_DATE | DateUtils.FORMAT_SHOW_YEAR;
        String selectedDateUtterance = DateUtils.formatDateTime(getContext(),
                mCurrentDate.getTimeInMillis(), flags);
        event.getText().add(selectedDateUtterance);
    } 
 
    /** 
     * @return The selected year. 
     */ 
    public int getYear() { 
        return mCurrentDate.get(Calendar.YEAR);
    } 
 
    /** 
     * @return The selected month or week. 
     */ 
    public abstract int getPositionInYear(); 
 
    protected abstract int getMaxYear(); 
 
    protected abstract int getMinYear();