예제 #1
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            TabLayoutResource = Resource.Layout.Tabbar;
            ToolbarResource   = Resource.Layout.Toolbar;

            base.OnCreate(savedInstanceState);

            Xamarin.Essentials.Platform.Init(this, savedInstanceState);
            global::Xamarin.Forms.Forms.Init(this, savedInstanceState);

            RequestToIgnoreBatteryOptimizations();

            MainService.StartService(this, (poc1) =>
            {
                LoadApplication(new App(poc1));
            });
        }
예제 #2
0
 public override void OnReceive(Context context, Intent intent)
 {
     //  Toast.MakeText(context, "Received intent!", ToastLength.Short).Show();
     MainService.StartService(context);
 }