Ejemplo n.º 1
0
        //Arrays.asList("screenOrientation", "configChanges", "windowSoftInputMode", "launchMode", "installLocation", "protectionLevel"));

        //trans int attr value to string
        private string getFinalValueAsString(string attributeName, string str)
        {
            uint value = uint.Parse(str);

            switch (attributeName)
            {
            case "screenOrientation":
                return(AttributeValues.getScreenOrientation(value));

            case "configChanges":
                return(AttributeValues.getConfigChanges(value));

            case "windowSoftInputMode":
                return(AttributeValues.getWindowSoftInputMode(value));

            case "launchMode":
                return(AttributeValues.getLaunchMode(value));

            case "installLocation":
                return(AttributeValues.getInstallLocation(value));

            case "protectionLevel":
                return(AttributeValues.getProtectionLevel(value));

            default:
                return(str);
            }
        }