I am receiving data from arduino due to android tablet through USB.
In my main activity i have a listener which executes a function when new data arrives in USB.
The issue is that the function takes a while to execute , but as soon as new data arrives this function gets triggered again. I am continuously streaming data from usb at 115200 bps.
To solve this i tried using greenrobot event bus. A new event will be posted when new data arrives , and this event will be subscribed by a service.
I doubt whether the events gets queued up and wait for the last event to execute completely or not.