Android Open Activity And Close Previous One?

Finish the activity after starting the new one startActivity(intent); finish().

Finish the activity after starting the new one. StartActivity(intent); finish().

Ha dunno why I never thought that very simple solution thanks a ton – user577732 Oct 9 at 20:19.

Alright so I have a loader screen which fetches files and what not, things the app needs to function and then when it's done loading it starts the main activity. However when you press back it goes back to the loading activity which obviously I don't want. Solution I set this in the manifest android:noHistory="true" for the loading screen activity.

But there is an issue with this, my application is a root app so it needs superuser permissions in the loader screen and when the su dialog appears asking to accept or decline the loading screen closes since history is off and another app has taken the view. I have found that if I remove noHistory from the manifest su doesn't close my app so I know that's what it is.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions