Hey all, I have been messing with this for days but have gotten no where. I can get an app to work that creates a home screen widget (extends AppWidgetProvider) and I can also get an app to work that reads Sensor data (extends Activity). What I can't seem to get working is a home screen widget that reads sensor data!
It doesn't appear that you can use SensorManager, SensorListener, etc inside of a widget that extends AppWidgetProvider.
The next thing I tried was having a separate class that extends Activity whic handles my Sensor data, then creating an instance of that class inside my Widget, but no sensor data ever populates.
Any tips is appretiated!