Any easy way to know, which is the current display...
# android
r
Any easy way to know, which is the current displayed fragment from android studio? I can get the activity name from profiler, but finding it hard time with fragment.
😶 9
s
you can try writing Log statements in lifecycle methods in the fragments you are having confusion. It will take some time, but it may do the work
r
I was being lazy and was more looking for some kind of tool hooked in AS, to check the number of fragments hosted by the current activity. Can, totally find it after writing some piece of code.
s
that might help you? It shows inflated activities and their view hierarchy?
🙏 1
a
You may use an interface for comunicate with fragment and knowing what fragment is execute.