Hi, I have an activity A (a menu) that creates and start activity B (a running game).
public void onClick(View v) { switch(v.getId()){ case R.id.start: Intent i = new Intent(this, GameActivity.class); startActivity(i); break; case R.id.exit: finish(); break; } } When I'm back into the menu (activity A) and while activity B is in the background , I want to stop activity A and B. How to do it? 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