Révision d14bc0b1 TestTeoBluetooth/TestTeoBluetooth.Android/MainActivity.cs

Voir les différences:

TestTeoBluetooth/TestTeoBluetooth.Android/MainActivity.cs
14 14

  
15 15
namespace TestXamConnections.Droid
16 16
{
17
    [Activity(Label = "TestBLE", Icon = "@mipmap/icon", Theme = "@style/MainTheme", MainLauncher = true, ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation | ConfigChanges.UiMode | ConfigChanges.ScreenLayout | ConfigChanges.SmallestScreenSize )]
17
    [Activity(Label = "TestXamConnections", Icon = "@mipmap/icon", Theme = "@style/MainTheme", MainLauncher = true, ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation | ConfigChanges.UiMode | ConfigChanges.ScreenLayout | ConfigChanges.SmallestScreenSize )]
18 18
    public class MainActivity : global::Xamarin.Forms.Platform.Android.FormsAppCompatActivity
19 19
    {
20 20
        protected override void OnCreate(Bundle savedInstanceState)
......
23 23

  
24 24
            Xamarin.Essentials.Platform.Init(this, savedInstanceState);
25 25
            Forms.Init(this, savedInstanceState);
26
            DependencyService.RegisterSingleton<IConnectionServiceProvider>(new ConnectionServiceUpdater());
26
            DependencyService.RegisterSingleton<IConnectionServiceProvider>(new ConnectionServiceProvider());
27 27
            DependencyService.RegisterSingleton<IBluetoothService>(new BluetoothService());
28 28
            LoadApplication(new App());
29 29
        }

Formats disponibles : Unified diff