| | |
| | | using Com.Hdl.ON.Jpush.Androidjpush; |
| | | using HDL_ON; |
| | | using Java.Util; |
| | | using Microsoft.AppCenter; |
| | | using Microsoft.AppCenter.Analytics; |
| | | using Microsoft.AppCenter.Crashes; |
| | | using Shared; |
| | | |
| | | namespace HDL_ON_Android |
| | | { |
| | | [Activity(Theme = "@style/SplashTheme", MainLauncher = true, LaunchMode = LaunchMode.SingleTask, Name = "com.hdl.onpro.SplashActivity", ScreenOrientation = ScreenOrientation.Portrait)] |
| | | [IntentFilter(new string[] { "com.hdl.onpro.SplashActivity", Intent.ActionView })] |
| | | [Activity(Theme = "@style/SplashTheme", MainLauncher = true, LaunchMode = LaunchMode.SingleTask, Name = "com.rongan.smart.SplashActivity", ScreenOrientation = ScreenOrientation.Portrait)] |
| | | [IntentFilter(new string[] { "com.rongan.smart.SplashActivity", Intent.ActionView })] |
| | | public class SplashActivity : Activity |
| | | { |
| | | protected override void OnActivityResult(int requestCode, Result resultVal, Intent data) |
| | |
| | | //StartActivityForResult(i, 1); |
| | | //OverridePendingTransition(0, 0); |
| | | //initAll(); |
| | | #if DEBUG |
| | | HDL_ON.OnAppConfig.Instance.isAgreePrivacyPolicy = true; |
| | | #endif |
| | | if (HDL_ON.OnAppConfig.Instance.FirstRunApp || !HDL_ON.OnAppConfig.Instance.isAgreePrivacyPolicy) |
| | | { |
| | | //OnAppConfig.Instance.FirstRunApp = false; |
| | |
| | | |
| | | void initOhterSdk() |
| | | { |
| | | //注册未处理异常事件 |
| | | AppCenter.Start("64ac5859-2cd7-4ef8-a5da-5455e29679ec", typeof(Analytics), typeof(Crashes)); |
| | | //手机名称 Android.OS.Build.Manufacturer; |
| | | //OnAppConfig.Instance.PhoneName = Android.OS.Build.Manufacturer; |
| | | //#if DEBUG |
| | |
| | | //#endif |
| | | JPushInterface.Init(this); |
| | | |
| | | Com.Chteam.Agent.BuglyAgentHelper.Init(this.ApplicationContext, "316a8f5d83"); |
| | | Com.Chteam.Agent.BuglyAgentHelper.Init(this.ApplicationContext, "81d1c458ed"); |
| | | |
| | | |
| | | BaseActivity.OnCreateActoin += (activity, application) => |
| | |
| | | |
| | | }; |
| | | |
| | | //初始化友盟sdk |
| | | Com.Hdl.Umsdk.UmSdk.InitUmSdk(this, "61d565d9e0f9bb492bbc3d5a", "Android"); |
| | | //初始化友盟sdk config |
| | | Com.Hdl.Umsdk.UmSdk.InitUMConfigure(this, "61d565d9e0f9bb492bbc3d5a", "Android", ""); |
| | | ////初始化友盟sdk |
| | | //Com.Hdl.Umsdk.UmSdk.InitUmSdk(this, "61d565d9e0f9bb492bbc3d5a", "Android"); |
| | | ////初始化友盟sdk config |
| | | //Com.Hdl.Umsdk.UmSdk.InitUMConfigure(this, "61d565d9e0f9bb492bbc3d5a", "Android", ""); |
| | | |
| | | } |
| | | |
| | |
| | | }; |
| | | |
| | | |
| | | HDLUtils.SetAuthoritiesName("com.hdl.onpro.fileProvider"); |
| | | HDLUtils.SetAuthoritiesName("com.rongan.smart.fileProvider"); |
| | | |
| | | //Shared.Application.IsGpsEnable = true; |
| | | //bool isfirst = true; |