In my fragments I never use getActivity() . If I need a Context , I get it in the onAttach() method, if I need to communicate with the Activity, ...
確定! 回上一頁