JLChen
2021-02-03 16b65f9019f8df3b154ab835b92879ca618be1c3
HDL-ON_Android/Application.cs
@@ -59,6 +59,30 @@
            BaseActivity.KeepScreenON = false;
            //隐藏迪拜虚拟按键
            BaseActivity.IsHideVirualButtons = true;
            //实现安卓返回按键
            BaseActivity.BackKeyAction = () => {
                try
                {
                    var result = MainPage.LoadEvent_BackAction();
                    switch (result)
                    {
                        case 0:
                            break;
                        case 1:
                        case 2:
                            BaseActivity.VerifyDateTime = DateTime.MaxValue;
                            break;
                        default:
                            BaseActivity.VerifyDateTime = DateTime.MaxValue;
                            break;
                    }
                }
                catch (Exception ex)
                {
                    Console.WriteLine(ex.Message);
                }
            };
            init();
            BaseActivity.OnCreateActoin += (activity, application) =>
            {
@@ -116,7 +140,7 @@
       
            HDLUtils.SetAuthoritiesName("com.hdl.onpro.fileProvider");
            HDLUtils.SetAuthoritiesName("com.hdl.evoyohome.fileProvider");
            //Shared.Application.IsGpsEnable = true;
            //获取经纬度