Hi. So basically I want to transfer real-time data(string, int, boolean…) between Android sketch and PC(laptop) sketch. How can I do it?
Check these links:
By the way, if you find a reference of plain simple java and Android, you can always use it in Processing.
I like to use the oscP5 lib for communication. You can set the data type for each message.
I have written Processing apps for Android used the Ketai library and serial over Bluetooth with success:
Try first with an app that sends data such as:
There are numerous other apps that send the sensor data from an Android as well.