Android Bluetooth comm clogging my Mega

Hello all,

I am using APP inventor to communicate serially via Bluetooth to a mega with a cheap Bluetooth module. I am using a timer on my app to update a subset of data points every 100 milliseconds. I used the line of code below thinking I could purge the serial buffer. However the more often I update my data points the quicker it hangs up the mega. It acts like I am filling some buffer to cause it to hang. Am I on the right track with the code below. can someone point me in the right direction?

Thanks in advance.

while (Serial.available() > 0) //This flushes the serial port at this point.
      {
        Serial.read();
      }

Those lines of code will dump the contents of the incoming serial buffer. There is nothing that says that you call them at the right time, or that dumping random amounts of unread data is a good idea.