Re: [android-developers] How to startActivity() in a subclass of Dialog?
On Thu, Nov 25, 2010 at 7:33 AM, xi developer <xideveloper36@gmail.com> wrote:
> I have one subclass which extends Dialog class, it seems I can not use
> startActivity() function to start a new Activity in this subclass
> which extends Dialog class, how to resolve it? How to start a new
> Activity in a Dialog subclass? (In my customized dialog class, I have
> one button, when pressed, I would like to have a new Activity start)..
Call getContext().startActivity()
--
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy
Android App Developer Books: http://commonsware.com/books
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home