Android : Can I force a fragment to exit while it is still going through its creation lifecycle?

on Thursday, April 2, 2015


I find that when my app goes from the background to foreground, and the OS killed my process while it was in the background, the fragment goes through its creation lifecycle all over again. There are some scenarios where I'd like for my fragment to not start. I find that even if I request my fragment manager to remove the fragment in onCreate(), it still goes through other life cycle methods. Any way I can get it to do a clean exit while it is still in the creation lifecycle?


0 comments:

Post a Comment