Code example for Fragment

Methods: isAdded