public QmunicateApplication (IntPtr handle, JniHandleOwnership transfer) : base (handle, transfer) { App.Version = AppVersionNumber (this); // Create the broadcast receiver and bind the event handler // so that the app gets updates of the network connectivity status var _broadcastReceiver = new NetworkStatusBroadcastReceiver(); _broadcastReceiver.ConnectionStatusChanged += OnNetworkStatusChanged; // Register the broadcast receiver global::Android.App.Application.Context.RegisterReceiver(_broadcastReceiver, new IntentFilter(ConnectivityManager.ConnectivityAction)); }
public QmunicateApplication(IntPtr handle, JniHandleOwnership transfer) : base(handle, transfer) { App.Version = AppVersionNumber(this); // Create the broadcast receiver and bind the event handler // so that the app gets updates of the network connectivity status var _broadcastReceiver = new NetworkStatusBroadcastReceiver(); _broadcastReceiver.ConnectionStatusChanged += OnNetworkStatusChanged; // Register the broadcast receiver global::Android.App.Application.Context.RegisterReceiver(_broadcastReceiver, new IntentFilter(ConnectivityManager.ConnectivityAction)); }