1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
| using Android.App;
| using Android.Content;
| using Android.OS;
|
| using Shared;
|
| namespace HDL_ON_Android
| {
| [Activity(Label = "SplashActivity", Theme = "@style/MyTheme", MainLauncher = true)]
| public class SplashActivity : Activity
| {
| protected override void OnCreate(Bundle savedInstanceState)
| {
| base.OnCreate(savedInstanceState);
|
| Intent i = new Intent(this, typeof(BaseActivity));//Intent intent=new Intent( 起始组件对象 , 目标 Service.class);
| i.SetFlags(ActivityFlags.NewTask);
| StartActivity(i);
| Finish();
| }
| }
| }
|
|