I want TextViews to display the sensors readings in a Fragment. When trying to initialize the SensorManager the getSystemService
TextViews
Fragment
SensorManager
getSystemService
sensorManager = (SensorManager) requireActivity().getSystemService(Context.SENSOR_SERVICE);