| | |
| | | using System;
|
| | | using Android.App; |
| | | using Android.Content; |
| | | using Android.Content.PM; |
| | | using Android.Net; |
| | | using Android.OS; |
| | | using CN.Jpush.Android.Api; |
| | |
| | | |
| | | namespace HDL_ON_Android |
| | | { |
| | | [Activity(Theme = "@style/SplashTheme", MainLauncher = true, Name = "com.hdl.onpro.SplashActivity")] |
| | | [Activity(Theme = "@style/SplashTheme", MainLauncher = true, Name = "com.hdl.onpro.SplashActivity",ScreenOrientation = ScreenOrientation.Portrait) ] |
| | | [IntentFilter(new string[] { "com.hdl.onpro.SplashActivity", Intent.ActionView })] |
| | | public class SplashActivity : Activity |
| | | { |
| | |
| | | { |
| | | if (!OnAppConfig.Instance.FirstRunApp) |
| | | { |
| | | //初始化友盟sdk |
| | | Com.Hdl.Umsdk.UmSdk.InitUmSdk(this, "61d565d9e0f9bb492bbc3d5a", "Android"); |
| | | //初始化友盟sdk config |
| | | Com.Hdl.Umsdk.UmSdk.InitUMConfigure(this, "61d565d9e0f9bb492bbc3d5a", "Android", ""); |
| | | ////打开baseActivity |
| | | Intent i = new Intent(this, typeof(BaseActivity));//Intent intent=new Intent( 起始组件对象 , 目标 Service.class); |
| | | StartActivityForResult(i, 1); |
| | |
| | | base.OnActivityResult(requestCode, resultVal, data); |
| | | } |
| | | |
| | | |
| | | protected override void OnCreate(Bundle savedInstanceState) |
| | | { |
| | | base.OnCreate(savedInstanceState); |
| | |
| | | //OverridePendingTransition(0, 0); |
| | | //initAll(); |
| | | |
| | | if (HDL_ON.OnAppConfig.Instance.FirstRunApp) |
| | | |
| | | |
| | | if (HDL_ON.OnAppConfig.Instance.FirstRunApp || !HDL_ON.OnAppConfig.Instance.isAgreePrivacyPolicy) |
| | | { |
| | | |
| | | Intent intent = new Intent(this, typeof(AgreementActivity)); |
| | |
| | | } |
| | | else |
| | | { |
| | | //初始化友盟sdk |
| | | Com.Hdl.Umsdk.UmSdk.InitUmSdk(this, "61d565d9e0f9bb492bbc3d5a", "Android"); |
| | | //初始化友盟sdk config |
| | | Com.Hdl.Umsdk.UmSdk.InitUMConfigure(this, "61d565d9e0f9bb492bbc3d5a", "Android",""); |
| | | ////打开baseActivity |
| | | Intent i = new Intent(this, typeof(BaseActivity));//Intent intent=new Intent( 起始组件对象 , 目标 Service.class); |
| | | StartActivityForResult(i, 1); |
| | |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | } |