From dc9a1b15bb69227e19afc070adf58156a362d2a2 Mon Sep 17 00:00:00 2001
From: wxr <wxr@hdlchina.com.cn>
Date: 星期一, 30 九月 2024 17:07:58 +0800
Subject: [PATCH] 安卓可视对讲响铃,

---
 HDL-ON_Android/SplashActivity.cs |   27 +++++++++++++++------------
 1 files changed, 15 insertions(+), 12 deletions(-)

diff --git a/HDL-ON_Android/SplashActivity.cs b/HDL-ON_Android/SplashActivity.cs
index 6b6401d..7143579 100644
--- a/HDL-ON_Android/SplashActivity.cs
+++ b/HDL-ON_Android/SplashActivity.cs
@@ -9,10 +9,7 @@
 using Android.Support.V4.App;
 using Android.Support.V4.Content;
 using CN.Jpush.Android.Api;
-//using Android.Widget;
-using Com.Hdl.ON.Jpush.Androidjpush;
 using HDL_ON;
-using Java.Util;
 using Shared;
 
 namespace HDL_ON_Android
@@ -23,7 +20,6 @@
     {
         protected override void OnActivityResult(int requestCode, Result resultVal, Intent data)
         {
-            Console.WriteLine("123456");
             if (requestCode == 99)
             {
                 if (resultVal == Result.Ok)
@@ -46,7 +42,6 @@
         [Obsolete]
         protected override void OnCreate(Bundle savedInstanceState)
         {
-            Console.WriteLine("123456");
             base.OnCreate(savedInstanceState);
 
             if(Shared.Application.Activity != null && Shared.Application.Activity.GetType() == typeof(BaseActivity))
@@ -67,7 +62,6 @@
                 //OnAppConfig.Instance.FirstRunApp = false;
                 //OnAppConfig.Instance.SaveConfig();
                 Language.CurrentLanguage = "Chinese";
-                Locale locale1 = Locale.Default;
                 var localeList = Resources.Configuration.Locale;
                 Console.WriteLine("褰撳墠璇█缂╁啓:" + localeList.Language);
                 if (localeList.Language == "zh")
@@ -86,6 +80,10 @@
                 {
                     Language.CurrentLanguage = "斜褗谢谐邪褉褋泻懈";
                 }
+                //else if (localeList.Language == "uk")
+                //{
+                //    Language.CurrentLanguage = "Ukraine";
+                //}
                 else
                 {
                     Language.CurrentLanguage = "English";
@@ -136,7 +134,7 @@
             //#endif
             JPushInterface.Init(this);
 
-            Com.Chteam.Agent.BuglyAgentHelper.Init(this.ApplicationContext, "316a8f5d83");
+            //Com.Chteam.Agent.BuglyAgentHelper.Init(this.ApplicationContext, "316a8f5d83");
             
 
             BaseActivity.OnCreateActoin += (activity, application) =>
@@ -201,7 +199,6 @@
             BaseActivity.OnCreateActoin = (activity, application) =>
             {
                 Language.CurrentLanguage = "Chinese";
-                Locale locale1 = Locale.Default;
                 var localeList = Resources.Configuration.Locale;
                 Console.WriteLine("褰撳墠璇█缂栧彿" + localeList.Language);
                 if (localeList.Language == "zh")
@@ -220,6 +217,10 @@
                 {
                     Language.CurrentLanguage = "斜褗谢谐邪褉褋泻懈";
                 }
+                //else if (localeList.Language == "uk")
+                //{
+                //    Language.CurrentLanguage = "Ukraine";
+                //}
                 else
                 {
                     Language.CurrentLanguage = "English";
@@ -250,7 +251,6 @@
             BaseActivity.RefreshUIAction = (activity) =>
             {
                 Language.CurrentLanguage = "Chinese";
-                Locale locale1 = Locale.Default;
                 var localeList = Resources.Configuration.Locale;
                 Console.WriteLine("褰撳墠璇█锛�" + localeList.Language);
                 if (localeList.Language == "zh")
@@ -269,6 +269,10 @@
                 {
                     Language.CurrentLanguage = "斜褗谢谐邪褉褋泻懈";
                 }
+                //else if (localeList.Language == "uk")
+                //{
+                //    Language.CurrentLanguage = "Ukraine";
+                //}
                 else
                 {
                     Language.CurrentLanguage = "English";
@@ -332,7 +336,7 @@
             {
                 //淇濆瓨鑾峰彇鐨勬瀬鍏夋湇鍔″櫒涓婄殑娉ㄥ唽ID鍒版湰鍦版枃浠�
                 var tokenID = JPushInterface.GetRegistrationID(activity);
-                Console.WriteLine("RegistrationID:  " + tokenID);
+                Console.WriteLine("鏋佸厜鎺ㄩ�両d:  " + tokenID);
                 if (!string.IsNullOrEmpty(tokenID) && OnAppConfig.Instance.PushDeviceToken != tokenID)
                 {
                     OnAppConfig.Instance.PushDeviceToken = tokenID;
@@ -346,14 +350,13 @@
                     {
                         System.Threading.Thread.Sleep(1000);
                         tokenID = JPushInterface.GetRegistrationID(activity);
-                        Console.WriteLine("Sleep.tokenID + " + JPushInterface.GetRegistrationID(activity));
                         loadTokenCount++;
                         if (loadTokenCount > 30)
                         {
                             break;
                         }
                     }
-                    Console.WriteLine("RegistrationID:  " + tokenID);
+                    Console.WriteLine("鏋佸厜鎺ㄩ�両d:  " + tokenID);
                     if (!string.IsNullOrEmpty(tokenID) && OnAppConfig.Instance.PushDeviceToken != tokenID)
                     {
                         OnAppConfig.Instance.PushDeviceToken = tokenID;

--
Gitblit v1.8.0