Android/Arduino bluetooth control problem

Thanks,
The code seems to appear fine in my window, my apologies if it is hard to read. I don't see any point in reposting as the thread will get long and confusing.

If you read the instructions for the app in the top set of code I believe it states that when a touchscreen button (Set up by me) is pressed it outputs a value of, for example 1,0. One being the number assigned to the button and the zero being the state that the button is in. Button two would output a value of 2,0 when in the off position (if I am understanding this correctly)

If you press the touchscreen button 1 it outputs a value of 1,1 and so on.

I guess I a trying to get the code to recognise the difference between a 1,1 output (ON) and a 1,0 output (OFF) through the serial monitor.

I may have this completely wrong, I was hoping someone could read the instructions and give me their own understanding of how it should work and how I could implement it.

Thanks in advance