[Mono-bugs] [Bug 656140] New: Add Overloads For Activity.SetResult and Activity.OnActivityResult Methods To Allow int For resultCode Parameter

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Fri Nov 26 13:42:50 EST 2010


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

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


           Summary: Add Overloads For Activity.SetResult and
                    Activity.OnActivityResult Methods To Allow int For
                    resultCode Parameter
    Classification: Mono
           Product: MonoDroid
           Version: unspecified
          Platform: x86-64
        OS/Version: Windows 7
            Status: NEW
          Severity: Enhancement
          Priority: P5 - None
         Component: Class Libraries
        AssignedTo: mkestner at novell.com
        ReportedBy: danomania at gmail.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.12)
Gecko/20101026 Firefox/3.6.12

Currently, certain Activity methods have an Android.App.Result for the
resultCode parameter. Unfortunately, this prevents custom result codes from
being used since you cannot inherit from enum types.

As far as I can tell, the affected methods are:
Activity.SetResult(Android.App.Result)
Activity.SetResult(Android.App.Result, Android.Content.Intent)
Activity.OnActivityResult(int, Android.App.Result, Android.Content.Intent)

The corresponding overloads would be:
Activity.SetResult(int)
Activity.SetResult(int, Android.Content.Intent)
Activity.OnActivityResult(int, int, Android.Content.Intent)


Reproducible: Always

Steps to Reproduce:
1.
2.
3.

-- 
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