0
I wanted to find some way that even if the app closes and automatically reboots again.
I couldn’t find any content that would help me if someone knew
0
I wanted to find some way that even if the app closes and automatically reboots again.
I couldn’t find any content that would help me if someone knew
0
As I recall there is no way to do this, but you can finish the Activity you are and start again, basically this FLAG clears the stacked activities and starts the one you want.
I advise to have a look at the documentation of FLAGS can help you in other doubts: FLAGS
How to do:
Intent intent = new Intent(getActivity(), SuaActivity.class);
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
startActivity(intent);
finish();
Browser other questions tagged android
You are not signed in. Login or sign up in order to post.