How to update Activity every time the data had been changed in Service
问题 I'm writing my first Android app and it's supposed to count steps (via accelerometer, source code from http://www.gadgetsaint.com/android/create-pedometer-step-counter-android/) So what do I have for now: MainActivity with three TextView fields (steps, bonuses, speed). Service where I detect steps and calculate distanse, bonus and speed. This service is a Bound Service and it consist of three classes: MyService, MyServiceBinder and MyServiceConnection. I've done it as explained in Xamarin