| | |
| | | |
| | | 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; |
| | |
| | | //#endif |
| | | JPushInterface.Init(this); |
| | | |
| | | Com.Chteam.Agent.BuglyAgentHelper.Init(this.ApplicationContext, "316a8f5d83"); |
| | | Com.Chteam.Agent.BuglyAgentHelper.Init(this.ApplicationContext, "81d1c458ed"); |
| | | |
| | | |
| | | BaseActivity.OnCreateActoin += (activity, application) => |
| | |
| | | }; |
| | | |
| | | |
| | | HDLUtils.SetAuthoritiesName("com.hdl.onpro.fileProvider"); |
| | | HDLUtils.SetAuthoritiesName("com.rongan.smart.fileProvider"); |
| | | |
| | | //Shared.Application.IsGpsEnable = true; |
| | | //bool isfirst = true; |