[Mono-bugs] [Bug 665341] New: Notification.Vibrate is read only...

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Jan 18 19:36:14 EST 2011


https://bugzilla.novell.com/show_bug.cgi?id=665341

https://bugzilla.novell.com/show_bug.cgi?id=665341#c0


           Summary: Notification.Vibrate is read only...
    Classification: Mono
           Product: MonoDroid
           Version: SVN
          Platform: Macintosh
        OS/Version: Mac OS X 10.6
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Class Libraries
        AssignedTo: mkestner at novell.com
        ReportedBy: jondick at gmail.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


User-Agent:       Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_6; en-US)
AppleWebKit/534.10 (KHTML, like Gecko) Chrome/8.0.552.237 Safari/534.10

Notification.Vibrate is read only, and i've tried doing something like:
myNotification.Vibrate.Add(100); which doesn't work either.

I think Vibrate should be settable...

NotificationManager nm = GetSystemService(Context.NotificationService) as
NotificationManager;

if (nm != null)
{
    var n = new Notification(Android.R.Drawable.IcPopupReminder, 
        "Sample Service...", 
        Android.OS.SystemClock.CurrentThreadTimeMillis());

    n.Defaults |= NotificationDefaults.Vibrate;

    //Can't do this right now in MonoDroid
    n.Vibrate = new long[] { 100, 100, 100 };

    n.SetLatestEventInfo(Application.ApplicationContext, 
                         "Expanded Title Goes Here", 
                         "Expanded Text is going right here", 
                         PendingIntent.GetActivity(ApplicationContext, 
                                                     0, 
                                                     new
Intent(ApplicationContext, typeof(Activity1)),
                                                    
PendingIntentFlags.UpdateCurrent));

    nm.Notify(1, n);
}


Reproducible: Always

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the mono-bugs mailing list