Code example for ArrayList

Methods: sizetoArray

    public AuthenticatorHelper() { 
    public String[] getEnabledAccountTypes() {
        return mEnabledAccountTypes.toArray(new String[mEnabledAccountTypes.size()]);
     * Gets an icon associated with a particular account type. If none found, return null. 
     * @param accountType the type of account 
     * @return a drawable for the icon or null if one cannot be found. 
    public Drawable getDrawableForType(Context context, final String accountType) {
        Drawable icon = null;
        if (mAccTypeIconCache.containsKey(accountType)) {
            return mAccTypeIconCache.get(accountType);
        if (mTypeToAuthDescription.containsKey(accountType)) {
            try {