[Mono-bugs] [Bug 643360] New: Creating intents from activities and launching them should be easier.

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Sat Oct 2 13:59:45 EDT 2010


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

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


           Summary: Creating intents from activities and launching them
                    should be easier.
    Classification: Mono
           Product: MonoDroid
           Version: unspecified
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Enhancement
          Priority: P5 - None
         Component: Class Libraries
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: bryancostanich at hotmail.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: Customer
           Blocker: No


The following code is necessary to launch a new activity:

            button.Click += (s, e) => {
                Intent newScreen = new Intent(this, typeof(Screen2));
                newScreen.SetFlags(ActivityFlags.NewTask);
                this.StartActivity(newScreen);
            };

really, creating the intent and starting it should just be an overload in
StartActivity that takes the typeof(activity) or the activity name. preferably
the typeof, so we don't have magic strings. something like:

activity.StartActivity(typeof(MyScreen)); - which would create an intent, set
flags to ActivityFlags.NewTask and then call the StartActivity that takes the
intent.

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


More information about the mono-bugs mailing list