On Fri, Jun 1, 2012 at 2:03 PM, Yefta Meliala <abuymil...@gmail.com> wrote:
> Hi, i am developing an android application and i need help to solve my > problem on my application. > My application is consist of 2 activity, main.java and > CobaGesture.java. > > Main,java has a start button that run startActivity(new > Intent(main.this, CobaGesture.class)); > CobaGesture.java has a back button that run finish(); > startActivity(new Intent(CobaGesture.this, main.class)); > > When the app running, i press the start button the activity changed to > CobaGesture, and when i press back button in CobaGesture the activity > back to main. But, when i press start again the app is forced close > and here's logcat of the error: > > I am not getting why are you starting activity main in your cobaGesture on back button click. On your back button click there at cobaGesture, you will automatically be switched to your previous activity (if you haven't finished it), you don't have to do anything there. -- 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