예제 #1
0
 protected override void OnCreate(Bundle?savedInstanceState)
 {
     base.OnCreate(savedInstanceState);
     if (EnableUnsupportedDeviceDetection && !DeviceSecurityCheckUtil.IsSupported(EnableEmulator))
     {
         Finish();
         return;
     }
 }
예제 #2
0
        protected override void OnCreate(Bundle?savedInstanceState)
        {
            base.OnCreate(savedInstanceState);

            AllowStart = DeviceSecurityCheckUtil.IsSupported(ThisAssembly.Debuggable);
            if (!this.IsAllowStart())
            {
                return;
            }

            StartActivity(new Intent(this, typeof(MainActivity)));
        }