| | |
| | | using Android.App; |
| | | using Android.Content; |
| | | using Android.OS; |
| | | |
| | | using Com.Hdl.ON.Jpush.Androidjpush; |
| | | using Shared; |
| | | |
| | | namespace HDL_ON_Android |
| | | { |
| | | [Activity(Label = "SplashActivity", Theme = "@style/MyTheme", MainLauncher = true)] |
| | | [Activity(Theme = "@style/SplashTheme", MainLauncher = true, Name = "com.hdl.onpro.SplashActivity")] |
| | | [IntentFilter(new string[] { "com.hdl.onpro.SplashActivity", Intent.ActionView })] |
| | | public class SplashActivity : Activity |
| | | { |
| | | protected override void OnCreate(Bundle savedInstanceState) |
| | | { |
| | | base.OnCreate(savedInstanceState); |
| | | |
| | | |
| | | //打开baseActivity |
| | | Intent i = new Intent(this, typeof(BaseActivity));//Intent intent=new Intent( 起始组件对象 , 目标 Service.class); |
| | | i.SetFlags(ActivityFlags.NewTask); |
| | | StartActivity(i); |
| | | |
| | | OverridePendingTransition(0, 0); |
| | | Finish(); |
| | | } |
| | | } |
| | | |
| | | |
| | | } |