getsystemservice fragment code example Example: getsystemservice in fragment kotlin getActivity().getSystemService(Context.NAMEOF_SERVICE);