I have two different activities. The first launches the second one. In the second activity, I call System.exit(0) in order to force the application to close, bu
System.exit(0)
Use the finish method. It is the simpler and easier method.
finish
this.finish();