Android - How to finish/finish an Activity?

Asked

Viewed 532 times

0

How to close, finish, finish a Activity, after executing a method?

In my project, I have two Activitys:

  • Mainactivity (Home, Home screen)
  • Editoractivity (Performs some simple tasks)

I would like to finish it, after calling the last method that completes her task and so, at the end, return to the main Activity.

  • 1

    Utilize Finish

  • I had not read in the documentation. I was trying to do as follows MainActivity.class.finish; or this.finish;. Anyway thanks.

1 answer

1

Browser other questions tagged

You are not signed in. Login or sign up in order to post.