s
I have used my own app which is created by using app inventor MIT, I referred this link-
http://www.instructables.com/id/Build-Android-Bluetooth-App-for-Arduino/
I dowloaded tha .aia file referred to in the first response to the tutorial. The forum won't allow me to attach the .aia file.
I could get that .aia file with app inventor and the ai2 companion on my phone to connect with my HC05.
The Arudino program does not appear to be correct.
EDIT: The aia file I used is linked in one of the later responses to the tutorial, not the first one. There are several versions of Arduino code on the tutorial, maybe one of them works. All in all, not a great "Instructables".