how to receive data in arduino from android Device with bluetooth

hi everybody

has anyone used the BluetoothCursors.pde example in processing android mode with arduino ?

the code in the example sends the X/Y of the cursor on the android device to the arduino over Bluetooth with the keitai library.
the funktion to send the data from the android device to arduino ist the bt.broadcast() funktion.
both codes work with no errors but i can not recognize the data correctly, i got some wierd numbers when i print the X and Y on the arduino IDE.

i think the code on the arduino is not correct.
i attached the processing code and arduino code so if someone has experinece with this , could probably hepl

thanks guys

processingCode-1.txt (3.63 KB)

processing related UI funktionen.txt (2.33 KB)

arduino-Bluet..txt (492 Bytes)

I have a similar project, compare R/C -arduino mega 2560 2x, Arduino Pro Mini 328 - 5V/16MHz 2x, android cell and win10/win-phone BLU win8.1, the PS3 controller is a first try thing still getting documentation.

https://disqus.com/home/channel/rcarduino/discussion/channel-rcarduino/rc_resources/

The examples in Serial Input Basics should be helpful - simple reliable ways to receive data.

...R