Buffered Reader for Android Streaming from Bluetooth
问题 Hey guys so I'm trying to read a stream from a bluetooth device continuously streaming integers like this: -11 121 123 1234 -11 I have everything working with some code I found online, but to do some of the processing the numbers need to be ints as opposed to Strings, parseInt is taking up too much CPU, and I tried using a buffered stream with no avail. Here is the current method: void beginListenForData() { final Handler handler = new Handler(); final byte delimiter = 10; //This is the ASCII