getActivity() is used for fragment. For activity, wherever you can use 'this', you can replace the 'this' in fragment in similar cases with 'getActivity()'.
|
|
|
getActivity() is used for fragment. For activity, wherever you can use 'this', you can replace the 'this' in fragment in similar cases with 'getActivity()'. |