Exemplo n.º 1
0
        public void HandleProviderEnabled(object sender, ProviderEnabledEventArgs e)
        {
            StartLocationMonitoringService();

            // Instantiate the builder and set notification elements:
            Notification.Builder builder = new Notification.Builder (this)
                .SetContentTitle ("VOW Notification")
                .SetContentText ("Monitoring has been enabled")
                .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 HandleProviderEnabled(object sender, ProviderEnabledEventArgs e)
 {
     Log.Debug (logTag, "Location provider enabled event raised");
 }
Exemplo n.º 3
0
 public void HandleProviderEnabled(object sender, ProviderEnabledEventArgs e)
 {
     Log.Debug(logTag, "Location provider enabled event raised");
 }
Exemplo n.º 4
0
 public void HandleProviderEnabled(object sender, ProviderEnabledEventArgs e)
 {
     System.Diagnostics.Debug.WriteLine("Henab");
     //Log.Debug(logTag, "Location provider enabled event raised");
 }
 public void handleProviderEnabled(object sender, ProviderEnabledEventArgs e)
 {
     //..
 }
Exemplo n.º 6
0
 private void HandleProviderEnabled(object sender, ProviderEnabledEventArgs e)
 {
     System.Diagnostics.Debug.WriteLine("Enabled");
 }