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
SAURABH SHARMA
08/02/2021, 6:46 PM
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
ritesh
08/02/2021, 7:14 PM
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.