Android : Android how to restart an activity

on Thursday, September 11, 2014


Red carefully before marking as duplicate:


How do I restart and activity in android terms within the activity. (just like when someone presses home button and goes back to the app). I do not want to redraw my activity so onCreate must not be called. Basically how to do pause -> stop -> start -> resume? (without destroy or create)


The main reason I would like to do this is that when I modify window flags they don't take effect imidiately but after pressing home and going back to the app they take effect. Any other suggestion on making sure they effect will be more than welcome. (FLAG_SECURE is the flag that is not taking effect immidiately)


I couldn't find anything regarding this all other similar questions involved redrawing the full activity.


0 comments:

Post a Comment