I am developing an application and in that case I've some activities which I don't want to show them again e.g like i have a splash screen which is my activity and i don't want it to show again on back key press.
Thanks in Advance
I am developing an application and in that case I've some activities which I don't want to show them again e.g like i have a splash screen which is my activity and i don't want it to show again on back key press.
Thanks in Advance
Set android:noHistory="true" to the activity entry at the AndroidManifest.xml. That will prevent the activity from being saved on the stack.
Call finish()
on the activity after you call startActivity()
to start the next one.
There is a manifest parameter that lets you permanently disable activity stack history for particular activities.