I\'m trying to close my app on a back button click. From the main screen, the back button takes you to a credits screen. From that credits screen, I want to close the app w
I don't get it. What onBackPressed() does is to call finish(). finish() is an Activity method, there's no way to "quit" your app, so to speak. Perhaps what you really want is to call finish() on the Activity that is starting the Credits activity. Inside the other activity:
finish();
startActivity(this, Credits.class);