https://best-android-tabletpc.blogspot.com/2023/06/android-closing-activity.html
Android Closing Activity Programmatically