you mean like c2instance.startActivity where c2instance is a
aninstance of c2?

On Feb 12, 8:18 am, Mark Murphy <[email protected]> wrote:
> automerc wrote:
> > Is it possible to have the android load up another UI from a different
> > class through a Onclicklistener? What I mean is that if I have two UI
> > classes (c1 using m1.xml and c2 using m2.xml). Is there a way to load
> > the c2 UI though the onlicklistener set on a button?
>
> > When  I was  programming in java i usually add an actionlistener to
> > the button and create a new instance of c2 in that actionlistener.
> > That doesn't seem to work here, and so I was wondering if theres
> > another way to do this?
>
> If "c2" is an Activity, use startActivity() to start it.
>
> --
> Mark Murphy (a Commons Guy)http://commonsware.com
> _The Busy Coder's Guide to Android Development_ Version 2.0 Published!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to