I have looked at both of your threads. This is what I think that you are trying to do ...
- You have eight LEDs controlled by an Arduino.
- A data file defines a sequence to switch the LEDs on and off.
- You want an app to read the file and transmit the data to the Arduino via Bluetooth.
You appear to have two problems ...
A - The code that reads the data file is not working as you expect (first thread).
B - The Bluetooth link between Android and Arduino is not working (this thread).
Your code to read the file is extremely complicated but it seems to almost do the job - it misses the final pattern (problem 'A'). Let us leave that for now.
In this thread we need to look at problem 'B'. The �� symbols that you have seen indicate data errors, so the Bluetooth link is not working properly. I am attaching a Bluetooth Testbed app. Write a new Arduino sketch (I do not use Arduino myself) that waits for a single incoming character from the Bluetooth serial link and responds by sending a short ASCII string back over Bluetooth. The ASCII string must end with a chr(10) - a Line Feed character. Open the Testbed app on your Android device, search for and connect to your HC-05, then press any of the app buttons. You should see your ASCII message from the Arduino displayed in the app. Be sure that you are driving the HC-05 Rx input with 3.3v, not 5v. If you see the error "Link error : java.io.IOException: Broken pipe" in the B4A log then stop and restart the Testbed.
If this works look at the Testbed code and compare it with your own Android code - it might show where you are going wrong. If it does not work then post your Arduino sketch - there might be an error there. We do need to do this. I spent several months trying to debug a Bluetooth connection before I discovered that the problem was in the HC-05 device code. Not all HC-05s work.