Not understanding this code : I wanted a way to exit my android app. hence I searched and found a piece of code which does that. But I am not able to understand the code and why it does what it does. Can anyone please explain? Here is the code:

         Intent intent = new Intent(Intent.ACTION_MAIN);
            intent.addCategory(Intent.CATEGORY_HOME);
            intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
            startActivity(intent);

Thanks a lot!!
