My android app use a searchview in actionbar, for some queries i don't want it to be included in the back-stack, is that possible? FYI, i've tried by setting intent flag to FLAG_ACTIVITY_NO_HISTORY/FLAG_ACTIVITY_PREVIOUS_IS_TOP inside onNewIntent() but with no luck.
Asked
Active
Viewed 365 times
0
-
1Have you tried to disable adding SearchView (as MenuItem) by sending a flag in the bundle so you'd know when not to show the search item, when the activity is resumed/new intent? – Nikola Despotoski Aug 28 '13 at 01:55
-
i need the searchview to always available in actionbar, but on some query i will direct to another activity and in this case i want the query to exclude from back-stack. – Anonymouse Aug 28 '13 at 02:19
-
found my answer here [link](http://stackoverflow.com/questions/1898886/removing-an-activity-from-the-history-stack) – Anonymouse Aug 28 '13 at 02:38