Exemplo n.º 1
0
        private static void HandleGPSClick(jQueryEvent e)
        {
            e.PreventDefault();

            IntentOptions options = new IntentOptions();

            options.Action = "android.settings.LOCATION_SOURCE_SETTINGS";
            Chameleon.Intent(options);
        }
Exemplo n.º 2
0
        private static void SetSwitchState(Dictionary data)
        {
            IntentOptions options = new IntentOptions();

            options.Component = settings_service_component;
            options.Data      = data;

            Chameleon.Intent(options);
        }
Exemplo n.º 3
0
        private static void HandleBrightnessClick(jQueryEvent e)
        {
            e.PreventDefault();

            //launch display settings
            IntentOptions options = new IntentOptions();

            options.Action = "android.settings.DISPLAY_SETTINGS";
            Chameleon.Intent(options);
        }
Exemplo n.º 4
0
        private static void UpdateSwitchStates()
        {
            IntentOptions options = new IntentOptions();

            options.Component = settings_service_component;
            options.Result    = delegate(Dictionary data)
            {
                HandleUpdateSwitchStatesData(data);
            };

            Chameleon.Intent(options);
        }
Exemplo n.º 5
0
        private static void LaunchGlobalSettings(jQueryEvent e)
        {
            if (e != null)
            {
                e.PreventDefault();
            }

            IntentOptions options = new IntentOptions();

            options.Action = "android.settings.SETTINGS";

            Chameleon.Intent(options);
        }
Exemplo n.º 6
0
        private void Intent()
        {
            ComponentOptions componentOptions = new ComponentOptions();

            componentOptions.Package = "com.twitter.android";
            componentOptions.Name    = "com.twitter.android.StartActivity";

            Chameleon.ComponentExists(componentOptions);

            IntentOptions intentOptions = new IntentOptions();

            intentOptions.Component = componentOptions;
            intentOptions.Action    = "android.intent.action.MAIN";
            Chameleon.Intent(intentOptions);
        }