FileDocCategorySizeDatePackage
CarrierLogo.javaAPI DocAndroid 1.5 API1604Wed May 06 22:42:46 BST 2009com.android.phone

CarrierLogo

public class CarrierLogo extends Object
Utility class to look up carrier logo resource IDs.

Fields Summary
private static Map
sLogoMap
Constructors Summary
private CarrierLogo()
This class is never instantiated.

    
Methods Summary
public static intgetLogo(java.lang.String name)

        Integer res = getLogoMap().get(name);
        if (res != null) {
            return res.intValue();
        }

        return -1;
    
private static java.util.MapgetLogoMap()


         
        if (sLogoMap == null) {
            sLogoMap = new HashMap<String, Integer>();

            // TODO: Load up sLogoMap with known carriers, like:
            // sLogoMap.put("CarrierName",
            //    Integer.valueOf(R.drawable.mobile_logo_carriername));

            // TODO: ideally, read the mapping from a config file
            // rather than manually creating it here.
        }

        return sLogoMap;