Keep device awake android programmatically. This is the best way to keep the bluetooth device awake.

Keep device awake android programmatically. Anything else, all bets are off.