| | |
| | | |
| | | string[] permissions = new string[] { Manifest.Permission.WriteExternalStorage, Manifest.Permission.RecordAudio, |
| | | Manifest.Permission.Camera, Manifest.Permission.ProcessOutgoingCalls, Manifest.Permission.GetAccounts}; |
| | | |
| | | //禁止屏幕长亮 |
| | | BaseActivity.KeepScreenON = false; |
| | | //隐藏迪拜虚拟按键 |
| | | BaseActivity.IsHideVirualButtons = true; |
| | | init(); |
| | | BaseActivity.OnCreateActoin += (activity, application) => |
| | |
| | | BaseActivity.OnResumeAction += (activity) => |
| | | { |
| | | checkSomeInfo(); |
| | | new HDL_ON.UI.AppUnlockPage().LoadPage(); |
| | | |
| | | }; |
| | | BaseActivity.OnDestroyAction += (activity) => |
| | | { |
| | | Console.WriteLine("OnDestroyAction"); |
| | | //BusSocket.Stop(); |
| | | OnAppConfig.Instance.unlockTime = DateTime.Now; |
| | | //UserInfo.Current.unlockTime = DateTime.Now; |
| | | }; |
| | | |
| | | |
| | |
| | | { |
| | | Console.WriteLine("HHH OnActivityStarted:foreground"); |
| | | BusSocketStart(); |
| | | //后台回到前台 |
| | | new HDL_ON.UI.AppUnlockPage().LoadPage(); |
| | | } |
| | | } |
| | | |
| | |
| | | { |
| | | Console.WriteLine("HHH OnActivityStopped: background"); |
| | | BusSocketStop(); |
| | | //进入后台 |
| | | UserInfo.Current.unlockTime = DateTime.Now; |
| | | |
| | | } |
| | | } |
| | | |
| | |
| | | { |
| | | IsEnterBackground = true; |
| | | //BusSocket.Stop(); |
| | | OnAppConfig.Instance.unlockTime = DateTime.Now; |
| | | } |
| | | |
| | | |