So i'm doing this home automation project Using mobile phone and decided to use a bluetooth module hc05 for wireless communication along with an arduino. For prototyping i made a simple circuit on breadboard to toggle an led on or off. The connections were pretty simple HC05>>> vcc to 5v, gnd to arduino gnd, rx to arduino tx(pin1), tx to arduino rx(pin0). I used a bluetooth terminal app on my andriod phone to toggle the led on and off and it worked. The problem is when ever i lock my screen the Hc05 disconnects and i have to reconnect it every single time. this is no good and happens with all of the bluetooth terminal apps i tried. i could really use some help with this.