I have an activity declared in my manifest with android:noHistory="true", and 90% of the time, this is the desired functionality. This specific action does not need to be stored in the application history, and the application user interface stream is very complicated when it is in the history, and it must be deleted manually, invoking finish()each time otherwise activity will be added to the stack.
The problem is that this activity allows the user to send an email, which, of course, is accomplished by creating an intent using the property ACTION_SEND. When the user presses the back button from this operation, the next one to be shown on the stack is actually the one under my activity. Is there a way to get Android to add my activity to the history stack before submitting the intent ACTION_SEND?
source
share