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