Ejemplo n.º 1
0
        public void SetXmlValue()
        {
            // get instatance of AGConnectConfig
            config = AGConnectConfig.getInstance();
            // get config resId of xml file
            int configId = AndroidUtil.GetId(new Context(), "xml", "remote_config");

            // Sets a default value for a parameter.
            config.applyDefault(configId);
            showAllValues();
        }
Ejemplo n.º 2
0
        public void SetMapValue()
        {
            config = AGConnectConfig.getInstance();
            HashMap map = new HashMap();

            map.put("test2", "true");
            map.put("test3", 222);
            map.put("test4", 666.456);
            map.put("test5", "fromMap");
            // Sets a default value for a parameter.
            config.applyDefault(map.toType <Map>());
            showAllValues();
        }