Example #1
0
        public static void StartSoftWingInput(int display_id)
        {
            Log.Debug(TAG, "StartSoftWingInput");
            Intent          intent  = new Intent(Application.Context, typeof(SoftWingInput));
            ActivityOptions options = ActivityOptions.MakeBasic();

            options.SetLaunchDisplayId(display_id);
            intent.AddFlags(ActivityFlags.NewTask | ActivityFlags.MultipleTask);
            if (instance != null)
            {
                Log.Debug(TAG, "Input instance exists, restarting");
                instance.Finish();
            }
            Application.Context.StartActivity(intent, options.ToBundle());
        }
Example #2
0
        public void OnStartLaunchBoundsActivity(View view)
        {
            Log.Debug(logTag, "** starting LaunchBoundsActivity");

            // Define the bounds in which the Activity will be launched into.
            var bounds = new Rect(500, 300, 100, 0);

            // Set the bounds as an activity option.
            ActivityOptions options = ActivityOptions.MakeBasic();

            options.SetLaunchBounds(bounds);

            // Start the LaunchBoundsActivity with the specified options
            var intent = new Intent(this, typeof(LaunchBoundsActivity));

            StartActivity(intent, options.ToBundle());
        }