Menu
  • HOME
  • TAGS

3rd Party Jar Exiting my Program?

java,swing,system.exit

Don't use System.exit(); Is there something I can do to prevent closing my new app without modifying the old one? use: frame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE); if the frame is the only window open it will exit the JVM. If other Windows are open only the current Window is closed. The default close operation...

Force quit of Android App using System.exit(0) doesn't work

java,android,quit,system.exit

The Exit is possible by deleting the whole activity-call-history and starting the Home-Activity of the Home-Scrren. Intent intent = new Intent(Intent.ACTION_MAIN); intent.addCategory(Intent.CATEGORY_HOME); intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK); startActivity(intent); ...