do not startactivityfor result just start another activity On 2 June, 05:29, mike <[email protected]> wrote: > hi guys, > > i have 2 activities. (Activity A and Activity B). > > Main Activity A is the Starting Activity. Activity B will run on top > of Activity B and is a Blur View. > > when i'm redirecting to the Activity B i'm not finishing activity A. > > I'm Starting Activity B like this > > startActivityForResult(intent, 107); > > so when i press back button from Activity B i'm doing this (Simply i > want to exit from the Application) > > @Override > public boolean onKeyDown(int keyCode, KeyEvent event) { > // TODO Auto-generated method stub > if (keyCode == KeyEvent.KEYCODE_BACK) { > finish(); > finishActivity(107); > Intent intent = new Intent(this, Menu.class); > startActivity(inten); > return true; > } > return false; > } > > but when i press back button it displays the Activity A again??????? > > how can i fix this. once i press back button i want to exit from the > application. > > regards, > Mike
-- 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

