Android: Check if a fragment is visible
android
Solution
check `if(YourFragment.this.isVisible())`
Problem
I have a FragmentActivity, some fragments and a service that is running in background. It is possible to check from the service if a specific fragment is visible?