Android - View all sensor values on same activity

There are applications like Sensor Kinetics or Sensors Test that display and update in real time the values of all sensors in one activity.

I am trying to accomplish the same thing. I want to display all of the sensor values in an activity X which receives the sensor values from a Foreground Service Y that sends a broadcast intent every time there is a sensor change. In this service Y all of the sensors are registered.

When I tried to receive sensor values via broadcast intent, the activity becomes very slow as it receives hundreds of broadcasts per second.

My question is, how can I keep my activity X smooth while having the service Y running in the foreground?

This is a snippet code from my service Y in onSensorChanged:

/.../
case Sensor.TYPE_ACCELEROMETER:
            float xAcc = event.values[0];              
            myBundle.putFloat("xAccValue",xAcc);                
            myBundle.putString("Sensor_Name",allConstants.ACCELEROMETER);
            int1.setAction(allConstants.SENSOR_DATA_INTENT);
            int1.putExtras(myBundle);
            LocalBroadcastManager.getInstance(this).sendBroadcast(int1);                
            break;
case Sensor.TYPE_GYROSCOPE:
            float xGyro = event.values[0];                
            myBundle.putFloat("xGyroValue",xGyro);               
            myBundle.putString("Sensor_Name",allConstants.GYROSCOPE);
            int1.setAction(allConstants.SENSOR_DATA_INTENT);
            int1.putExtras(myBundle);
            LocalBroadcastManager.getInstance(this).sendBroadcast(int1);
            break;
/.../