How are you getting into the activity in the first place?

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


On Mon, May 2, 2011 at 6:28 PM, imz7070 <imz7...@gmail.com> wrote:

> Hello,
>
> I have an Activity which uses loads a new view: setContentView(new
> DrawView(this)) in the onCreate method. In this new view (which is in
> a seperate class) I draw a canvas for pool game I'm making.
>
> Problem is I do not know how to finish this activity and start a new
> one. For XML views, I use the following:
>
> finish();
> startActivity(new Intent(this, GameMenuActivity.class));
>
> This code cannot be used in my DrawView class, so I tried calling a
> method, which contained the code above, in the class where I created
> the view, but it crashes the game. Could someone please point out
> where I am going wrong?
>
> Thanks.
>
> --
> 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+unsubscr...@googlegroups.com
> 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 android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to