From 9ef48d7b2da7c408b53f73be0f6eef3cbac1c84a Mon Sep 17 00:00:00 2001 From: 黄学彪 <hxb@hdlchina.com.cn> Date: 星期四, 19 十一月 2020 10:23:45 +0800 Subject: [PATCH] Evoyo.Home1.1.0120111601_Release --- ZigbeeApp/GateWay.Droid/Application.cs | 24 +++++++++++++++++++----- 1 files changed, 19 insertions(+), 5 deletions(-) diff --git a/ZigbeeApp/GateWay.Droid/Application.cs b/ZigbeeApp/GateWay.Droid/Application.cs index 7858c42..163796e 100755 --- a/ZigbeeApp/GateWay.Droid/Application.cs +++ b/ZigbeeApp/GateWay.Droid/Application.cs @@ -20,7 +20,6 @@ namespace com.hdl.home { - [Activity(Name = "com.hdl.home.wxapi.WXEntryActivity", Exported = true, Theme = "@android:style/Theme.Translucent", LaunchMode = Android.Content.PM.LaunchMode.SingleTask)] class WXEntryActivity : Android.App.Activity, IWXAPIEventHandler { @@ -83,6 +82,12 @@ public class Application : Android.App.Application { public Application(IntPtr handle, Android.Runtime.JniHandleOwnership ownerShip) : base(handle, ownerShip) { } + + /// <summary> + /// 妫�娴嬪唴瀛樻硠闇茬殑涓滆タ + /// </summary> + ///private Square.LeakCanary.RefWatcher _refWatcher; + public override void OnCreate() { //濡傛灉涓嶆槸App鐨勪富杩涚▼,鍒欎笉闇�瑕佸鐞� @@ -101,9 +106,16 @@ //璋冭瘯:璁板綍绯荤粺寮傚父 Shared.Phone.UserCenter.HdlLogLogic.Current.WriteOtherText(Shared.Phone.UserCenter.DirNameResourse.SystemLogFile, ex.Message + "\r\n" + ex.StackTrace, true, false); } - base.OnCreate(); - // 閫氳繃WXAPIFactory宸ュ巶锛岃幏鍙朓WXAPI鐨勫疄渚� - //api = WXAPIFactory.CreateWXAPI(this, "wx2ec8f53f6fa36e82", true); + base.OnCreate(); + // 閫氳繃WXAPIFactory宸ュ巶锛岃幏鍙朓WXAPI鐨勫疄渚� + //api = WXAPIFactory.CreateWXAPI(this, "wx2ec8f53f6fa36e82", true); + + //妫�娴嬪唴瀛樻硠闇茬殑涓滆タ + //if (Square.LeakCanary.LeakCanaryXamarin.IsInAnalyzerProcess(this) == false) + //{ + // _refWatcher = Square.LeakCanary.LeakCanaryXamarin.Install(this); + // _refWatcher.Watch(this); + //} // 灏嗗簲鐢ㄧ殑appId娉ㄥ唽鍒板井淇� api?.RegisterApp("wx2ec8f53f6fa36e82"); @@ -136,12 +148,14 @@ var req = new SendAuth.Req { Scope = "snsapi_userinfo", State = "ZigbeeApp" }; api?.SendReq(req); } + /// <summary> /// 鎵�鏈夊垵濮嬪寲鍏ㄩ儴鍦ㄨ繖涓柟娉曞疄鐜� /// </summary> void initAll() { - Shared.Application.IsGpsEnable = System.IO.File.Exists(Shared.Phone.UserCenter.DirNameResourse.OpenGbsFile); + //鍙栨秷灞忓箷甯镐寒 + BaseActivity.KeepScreenON = false; //闅愯棌搴曢儴杞寜閿� BaseActivity.IsHideVirualButtons = true; -- Gitblit v1.8.0