There is a isRemoving
method for fragments in android. Per the documentation, it only tells when a fragment is in the process of being removed. But I need to know whether a fragment has already been removed. Is there a way to find this out? I am using api level 11.
Asked
Active
Viewed 479 times
0

Erick Filho
- 1,962
- 3
- 18
- 31

learner
- 11,490
- 26
- 97
- 169
1 Answers
0
For what purpose are you using this method?
There are other convinience methods like isVisible()
.
If you want to be sure that you are safe to perform any action inside of fragment
, it's better to check getActivity()
, as it is the only one call that will tell you true when your fragment is legal to perform action.

Roger Alien
- 3,040
- 1
- 36
- 46