I use fragments. What needs to be done because the application creates a new copy of the application, and it turns out that 2 identical applications are running

    1 answer 1

    onBackPressed() does not minimize the application, but just calls the finish() method for your activation (on default). And, what runs on the new app is a natural phenomenon. You can not give the user to exit the application. You better write down for what purposes you want to do it. A plus

    1. <uses-permission/> written outside the application tag, not inside
    2. fragments. Fragment - do you really call it activation?
    • That is, in the pageadapter class in which I have the fragment logic, I override the onBackPressed () method and call finish ()? In this case, my application is completely removed from memory? - upward