Moving between android activities on button clicks
        Posted  
        
            by cppdev
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by cppdev
        
        
        
        Published on 2010-04-16T14:47:56Z
        Indexed on 
            2010/04/16
            20:33 UTC
        
        
        Read the original article
        Hit count: 352
        
android
|android-sdk
I am writing a android application where, on startup activity view, I have a button "DoIt". When user clicks "DoIt" button, I start another activity with different layout. On newly started activity, I have a button "Back" which should take me to the first activity. How to accomplish this. What code should I write on OnClick method of "Back" button. Also, I want the newly created activity to die after back button is pressed and application comes back to start-up activity.
© Stack Overflow or respective owner