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