openxc / openxc-android

Android library for accessing vehicle data from an OpenXC vehicle interface
BSD 3-Clause "New" or "Revised" License
236 stars 115 forks source link

fix phone sensor source #382

Closed dominicmeroux closed 3 years ago

dominicmeroux commented 4 years ago

Per my email "OpenXC Android Phone Sensor," I modified PhoneSensorSource.java to add back in the lines sensorService = (SensorManager) context.getSystemService(Context.SENSOR_SERVICE); and locationManager = (LocationManager) context.getSystemService(Context.LOCATION_SERVICE); which should allow phone sensor data to stream.