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: [email protected]
        ReportedBy: [email protected]
         QAContact: [email protected]
          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.
_______________________________________________
mono-bugs maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to