Code android e arduino

What’s that? connectedThread

How did you pair the android device with the HC-06?
How did you connect the HC-06 with your arduino (some only support 3.3v on Rx)?

The way you read Serial is weird (you have two serial reads in the loop)