+ Reply to Thread
Results 1 to 2 of 2

Thread: How to Finish Previous Activity?

  1. #1

    How to Finish Previous Activity?

    I am developing an online examination app whenever i navigate to next questions i dont want user to navigate back to previous one with system back button.I want just one activity running at a time.Please tell me how to do that.

  2. #2
    Junior Member
    Join Date
    Aug 2012
    It is not a big task just call finish() in activity which you want to complete.

    If you navigating to next screen then after starting the next activity call finish() on previous one so that previous one completes and just closes itself

    Check out code snippet

    Intent i=new Intent(getApplicationContext(),NextActivity.class);

+ Reply to Thread


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts