In any view class, you would have a context object. Use that  context object
and then call the method startActivity.

To get the context, use getContext()

Kumar Bibek
http://techdroid.kbeanie.com
http://www.kbeanie.com



On Tue, Jan 4, 2011 at 11:26 PM, flix <[email protected]> wrote:

> Hello,
>   (sorry for my english)
>   I have 3 classes in my project. One is the MainActivity (extend
> Actvity), another SecondActivity( extend Actvity) and the last
> DrawView (extend View). How can I start SecondActivity form DrawView?
>
> --
> 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]<android-developers%[email protected]>
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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