I wanted to find some way that even though the application would close and automatically restart again.
I do not find any content that can help me if someone knows
I wanted to find some way that even though the application would close and automatically restart again.
I do not find any content that can help me if someone knows
As I recall, there is no way to do this, but you can finish the activity you are doing and start again, basically this FLAG cleans the stacked activities and starts the one you want.
I would advise you to take a look at the FLAGS documentation and can help you with any other questions: FLAGS
How to do:
Intent intent = new Intent(getActivity(), SuaActivity.class);
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
startActivity(intent);
finish();