Exemplo n.º 1
0
        public void HandleProviderDisabled(object sender, ProviderDisabledEventArgs e)
        {
            App.Current.LocationService.OnDestroy();

            // Instantiate the builder and set notification elements:
            Notification.Builder builder = new Notification.Builder (this)
                .SetContentTitle ("VOW Notification")
                .SetContentText ("Monitoring has been disabled because your location cannot be determined")
                .SetSmallIcon (Resource.Drawable.Icon);

            // Build the notification:
            Notification notification = builder.Build ();

            // Get the notification manager:
            NotificationManager notificationManager = (NotificationManager)GetSystemService (NotificationService);

            // Publish the notification:
            const int notificationId = 0;
            notificationManager.Notify (notificationId, notification);
        }
 public void HandleProviderDisabled(object sender, ProviderDisabledEventArgs e)
 {
     Log.Debug (logTag, "Location provider disabled event raised");
 }
Exemplo n.º 3
0
 public void HandleProviderDisabled(object sender, ProviderDisabledEventArgs e)
 {
     Log.Debug(logTag, "Location provider disabled event raised");
 }
Exemplo n.º 4
0
 public void HandleProviderDisabled(object sender, ProviderDisabledEventArgs e)
 {
     System.Diagnostics.Debug.WriteLine("Hdisa");
     //Log.Debug(logTag, "Location provider disabled event raised");
 }
 public void handleProviderDisabled(object sender, ProviderDisabledEventArgs e)
 {
     //..
 }
Exemplo n.º 6
0
 private void HandleProviderDisabled(object sender, ProviderDisabledEventArgs e)
 {
     System.Diagnostics.Debug.WriteLine("Disabled");
 }