When creating the fragment, I found that getActivity () is null. Therefore, in order to narrow down the problem, I saved a local copy of the activity in onAttach (Activity activity), which by definition is when it is attached to an activity.
However, I registered activity in onAttach and it is still zero.
I only encounter this problem in 2.3.6 and below.
Is this a known issue with the support package?
SIr Codealot
source share