I want to exit from app, i created a menu with option exit, when the user choose exit menu, app shutdown. But unfortunately this not work always. What's wrong? Thank you
i wrote this code on my button EXIT click.
Intent intent = new Intent(getApplicationContext(), MainActivity.class)...