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