From a0e4d2fdc63d8c568d25e9970d83177cd9697004 Mon Sep 17 00:00:00 2001
From: wxr <wxr@hdlchina.com.cn>
Date: 星期一, 30 九月 2024 10:05:34 +0800
Subject: [PATCH] 可视对讲
---
HDL-ON_Android/SplashActivity.cs | 36 +++++++++++++++---------------------
1 files changed, 15 insertions(+), 21 deletions(-)
diff --git a/HDL-ON_Android/SplashActivity.cs b/HDL-ON_Android/SplashActivity.cs
index 096e3b3..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))
@@ -85,10 +80,10 @@
{
Language.CurrentLanguage = "斜褗谢谐邪褉褋泻懈";
}
- else if (localeList.Language == "uk")
- {
- Language.CurrentLanguage = "Ukraine";
- }
+ //else if (localeList.Language == "uk")
+ //{
+ // Language.CurrentLanguage = "Ukraine";
+ //}
else
{
Language.CurrentLanguage = "English";
@@ -139,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) =>
@@ -222,10 +217,10 @@
{
Language.CurrentLanguage = "斜褗谢谐邪褉褋泻懈";
}
- else if (localeList.Language == "uk")
- {
- Language.CurrentLanguage = "Ukraine";
- }
+ //else if (localeList.Language == "uk")
+ //{
+ // Language.CurrentLanguage = "Ukraine";
+ //}
else
{
Language.CurrentLanguage = "English";
@@ -274,10 +269,10 @@
{
Language.CurrentLanguage = "斜褗谢谐邪褉褋泻懈";
}
- else if (localeList.Language == "uk")
- {
- Language.CurrentLanguage = "Ukraine";
- }
+ //else if (localeList.Language == "uk")
+ //{
+ // Language.CurrentLanguage = "Ukraine";
+ //}
else
{
Language.CurrentLanguage = "English";
@@ -341,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;
@@ -355,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